rsync-time-backup icon indicating copy to clipboard operation
rsync-time-backup copied to clipboard

Questions: Backup are not incremental - Entire 50GB folder always copied

Open davide-moroni opened this issue 4 years ago • 6 comments

Hi, i'm sorry if i'm not understanding well the mechanism implemented but i tried doing three consecutive backup of same folder with this command, and every times the script copies all files multiplying the space used every time.

/Users/david/rsync-time-backup/rsync_tmbackup.sh -p 22 /Users/david/Documents/Immagini/ pi@raspberrypi:/mnt/NAS01P2/ > /Users/david/backup_cron.log

I executed the command three times, each time waiting 10 minutes after last launch.

Thank you Best Regards Davide

davide-moroni avatar Jun 06 '20 21:06 davide-moroni

These are the size of the two backup folders, the second was done one day after the first one.

Why it is not incrermental?

pi@raspberrypi:/mnt/NAS01P2 $ du -h --max-depth=1 101G ./2020-06-06-230800 101G ./2020-06-07-230802

davide-moroni avatar Jun 08 '20 07:06 davide-moroni

I'm just evaluating the software for the first time, but if it's using hard links, then the OS will report full file size for both hard links, but actual disk space will not be used twice. A hard link is a just a pointer to actual data on disk. Just explanation here https://stackoverflow.com/questions/185899/what-is-the-difference-between-a-symbolic-link-and-a-hard-link

odinian avatar Jan 02 '21 17:01 odinian

I seem to be having a similar issue on Ubuntu 20.04.

ls -i is showing different inode values for the same across backup directories.

cron entry 5 4 * * * if grep -qs /media/8tb /proc/mounts; then /home/chief/rsync-time-backup/rsync_tmbackup.sh /home /media/8tb/backups/rsync_time_machine ~/rsync-time-backup/excluded-patterns.txt; fi

Excluded patterns file - .cache/

I feel it's just something I haven't thought of.

ChiefMedicalOfficer avatar May 30 '21 09:05 ChiefMedicalOfficer

I don't think hard links are created; this is from a folder where nothing has changed at all CleanShot 2022-01-16 at 14 52 04@2x

Shouldn't the count be > 1 there?

haemi avatar Jan 16 '22 13:01 haemi

hm... my behavior seems to be because it's a directory in the iCloud Drive / within Mobile Documents...

haemi avatar Jan 16 '22 14:01 haemi

It would make sense if they disable hard links within iCloud Drive because most likely they consider each file to be globally unique.

laurent22 avatar Jan 16 '22 14:01 laurent22