Made games Backup funtional
This commit is contained in:
parent
6db4cd43fe
commit
62e74c18d7
@ -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
|
Loading…
Reference in New Issue
Block a user