dotfiles/bin/backup-game-files.sh

13 lines
330 B
Bash
Raw Normal View History

2023-08-14 19:28:08 -04:00
#!/bin/bash
declare -A local_games
local_games=( ["Factorio"]="$HOME/.factorio" ["Terraria"]="$HOME/.local/share/Terraria" )
remote_games_path="Game Files"
for game in ${!local_games[@]}
do
echo "${local_games[$game]} => $remote_games_path/$game"
upload-to-nextcloud "${local_games[$game]}" "$remote_games_path/$game"
done