laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.41k stars 449 forks source link

Is BTRFS source and/or destination a problem? #274

Open AdamAnon opened 6 days ago

AdamAnon commented 6 days ago

Hi,

Is this script supposed to work with BTRFS formatted local disks as the backup source and the destination? Backing up about 750GB and it filled up a 4TB disk with only 5 backups. It looks like the hard-linking logic isn't working and each backup is a full backup. So, I'm wondering if it's because it's on BTRFS? I didn't have this problem before backing up other computers to vanilla EXT4 volumes. But I'm not sure whether the problem is because the source is BTRFS or the backup is BTRFS, or both? Or something entirely different... Thanks!

shmilee commented 4 days ago

Yes, it works with BTRFS. I've used a modified script based on rsync-time-backup for several months, with the same or different BTRFS partitions. see: https://github.com/shmilee/arch-time-backup/tree/master?tab=readme-ov-file#an-actual-use-case

Maybe, your problem is related to the BTRFS mount options? rsync options?

AdamAnon commented 4 days ago

Yes, it works with BTRFS. I've used a modified script based on rsync-time-backup for several months, with the same or different BTRFS partitions. see: https://github.com/shmilee/arch-time-backup/tree/master?tab=readme-ov-file#an-actual-use-case

Maybe, your problem is related to the BTRFS mount options? rsync options?

Thanks! But is the source BTRFS too? The script backs up everything every time if the source is BTRFS. The destination doesn't matter, it seems. I'm gonna try to verify that today, I wiped and reinstalled on EXT filesystem, but didn't get to the script yet.

I used the vanilla tm backup script, I didn't change any rsync option or BTRFS options either as I don't know how to, just whatever the Disks utility did. The script worked for me in the past, but I never used anything besides EXT before.

In the end this is not a big deal, I can do EXT for boot, I'm just playing around with Linux at this time, it's just testing.