threefoldtech / info_grid

Apache License 2.0
1 stars 2 forks source link

NextCloud backup script fix #636

Closed scottyeager closed 6 days ago

scottyeager commented 2 weeks ago

The NextCloud guide has instructions to back up to a second VM. They include a script to run on the second VM:

#!/bin/bash

sudo rsync -avz --progress --delete --log-file=/root/nextcloud_backup/rsync_nextcloud_storage.log /root/nextcloud_backup/ root@<Nextcloud_VM_IP_Address>:/mnt/backup

We got a report that this has the source and destination switched, such that backups on the original VM will actually be deleted. Seems it should be:

#!/bin/bash

sudo rsync -avz --progress --delete --log-file=/root/nextcloud_backup/rsync_nextcloud_storage.log root@<Nextcloud_VM_IP_Address>:/mnt/backup /root/nextcloud_backup/ 
Mik-TF commented 1 week ago

Fixed in #635

Mik-TF commented 1 week ago

Good catch thanks.