If you add --delete-before, it absolutely can delete stuff.
MangoPenguin@lemmy.blahaj.zone 2 days ago
Surely restic or borg would be better for backups?
Rsync can send files and not delete stuff, but there’s no versioning or retention settings.
chronicledmonocle@lemmy.world 2 days ago
MangoPenguin@lemmy.blahaj.zone 2 days ago
Yeah but then it’s not really a good backup!
sugar_in_your_tea@sh.itjust.works 2 days ago
For versioning, just use snapshots in whatever filesystem you’re using (you are using a proper filesystem like ZFS or BTRFS, right?).
MangoPenguin@lemmy.blahaj.zone 2 days ago
How does that get sent over rsync though? Wouldn’t you need snapshots on the remote destination server?
Why not just use a backup utility instead?
sugar_in_your_tea@sh.itjust.works 2 days ago
Yes, async copies files to the remote server, the remote server takes regular snapshots.
What is that utility providing that snapshots + rsync doesn’t. If rsync + snapshots is sufficient, why overcomplicate it with a backup utility?
MangoPenguin@lemmy.blahaj.zone 2 days ago
The main things that come to mind are you have to test/monitor 2 seperate actions instead of 1, and restores of single files could be more difficult since you need to login to the backup server, restore the file from a snapshot, then also copy that file back to your PC.