diff --git a/system-backup b/system-backup index f527080..9b5ec89 100644 --- a/system-backup +++ b/system-backup @@ -46,9 +46,9 @@ sudo -u git /usr/local/bin/gitea dump --config /etc/gitea/app.ini --file "/tmp/g # Create rote directory sudo ssh backup-user@$remote_ip 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; +sudo screen -dmS backup -t backup bash -c "rsync -Aavrz --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/; +rsync -Aavrz --progress -e ssh /tmp/gitea-dump/backup.zip backup-user@$remote_ip:$backup_dir_remote/gitea/; sudo -u www-data php occ maintenance:mode --off" sudo screen -R backup