diff --git a/system-backup b/system-backup index dfa27d3..8574059 100644 --- a/system-backup +++ b/system-backup @@ -32,8 +32,7 @@ fi #backup_dir="/mnt/USB/Backup/"$(date +'%Y/%m/%d') backup_dir_remote="/media/backup/"$(date +'%Y/%m/%d') nextcloud_dir="/var/www/nextcloud" -#gitea_dir="/var/" -remote_ip="192.168.178.48" +remote_ip="192.168.178." # Back the fuck up bro... # Shuting down services for backup @@ -47,8 +46,7 @@ sudo -u git /usr/local/bin/gitea dump --config /etc/gitea/app.ini --file "/tmp/g # Create rote directory sudo ssh backup@$remote_ip sudo mkdir -p $backup_dir_remote/gitea mkdir $backup_dir_remote/nextcloud mkdir $backup_dir_remote/mysql # copy the shit over -sudo screen -dmS backup -t backup bash -c "rsync -Aavr --progress -e ssh $nextcloud_dir backup-user@$remote_ip:$backup_dir_remote/nextcloud; -rsync -Aavr --progress -e ssh $gitea_dir backup-user@$remote_ip:$backup_dir_remote/gitea; +sudo screen -dmS backup -t backup bash -c "rsync -Aavr --progress -e ssh $nextcloud_dir backup-user@$remote_ip:$backup_dir_remote/nextcloud; rsync -Aavr --progress -e ssh /tmp/nextcloud.sql backup-user@$remote_ip:$backup_dir_remote/mysql/; rsync -Aavr --progress -e ssh /tmp/gitea-dump/backup.zip backup-user@$remote_ip:$backup_dir_remote/gitea/"