rsync-time-backup
rsync-time-backup copied to clipboard
Questions: Backup are not incremental - Entire 50GB folder always copied
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
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
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
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.
I don't think hard links are created; this is from a folder where nothing has changed at all
Shouldn't the count be > 1 there?
hm... my behavior seems to be because it's a directory in the iCloud Drive / within Mobile Documents...
It would make sense if they disable hard links within iCloud Drive because most likely they consider each file to be globally unique.