laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

Backup policy #259

Open robbo007 opened 1 year ago

robbo007 commented 1 year ago

Hi, Does this create a "full" backup at any stage? In the case of a disaster and I need to restore everything would I have to restore every incremental copy in order to get everything back? Thanks,

psmanek commented 1 year ago

Every copy is a full copy. Only new files are incremental, every other file is linked to other copy. So when you restore it will copy all files.

flyisland commented 1 year ago

@robbo007, this script utilizes rsync --link-dest to implement incremental backups, ensuring that each backup, represented by the date-time folder, is a full copy.

You could refer to this article https://digitalis.io/blog/linux/incremental-backups-with-rsync-and-hard-links/ for more information about the hard-links.