added compression

This commit is contained in:
Johannes Schmelz 2021-01-07 19:35:39 +01:00
parent cfea3898ce
commit d0a6d9e956

View File

@ -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