diff --git a/games-backup b/games-backup index a389d2f..e012219 100644 --- a/games-backup +++ b/games-backup @@ -19,8 +19,8 @@ fi backup_dir="/mnt/USB/Backup/"$(date +'%Y/%m/%d') backup_dir_remote="/media/backup/games/"$(date +'%Y/%m/%d') minecraft_dir="/media/games/bukkit" -csgo_dir="/var/" -remote_ip="192.168.178." +#csgo_dir="/var/" +remote_ip="192.168.178.8" if [ "$1" = "-d" ] then @@ -34,6 +34,7 @@ if [ "$1" = "-d" ] # Create remote directory sudo ssh backup-user@$remote_ip mkdir -p $backup_dir_remote/cs-go mkdir $backup_dir_remote/mc # copy the shit over - sudo screen -dmS backup -t backup bash -c "rsync -Aarz --progress -e ssh $minecraft_dir/ backup-user@$remote_ip:$backup_dir_remote/mc; - rsync -Aarz --progress -e ssh $csgo_dir backup-user@$remote_ip:$backup_dir_remote/cs-go/" + sudo screen -dmS backup -t backup bash -c " + rsync -Aarz --progress --exclude={$minecraft_dir/logs,$minecraft_dir/crash-reports} -e ssh $minecraft_dir/ backup-user@$remote_ip:$backup_dir_remote/mc;" + #rsync -Aarz --progress -e ssh $csgo_dir backup-user@$remote_ip:$backup_dir_remote/cs-go/ fi \ No newline at end of file