From 62e74c18d7e51665861a295499c72a179c7bef24 Mon Sep 17 00:00:00 2001 From: peet Date: Fri, 22 Jan 2021 12:56:25 +0100 Subject: [PATCH] Made games Backup funtional --- games-backup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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