laurent22 / rsync-time-backup

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

how to use --copy-links #81

Closed YannMoisan closed 6 years ago

YannMoisan commented 7 years ago

Given that files/folders that I want to backup are in different locations, I'd like to create a folder tobackup that contains symlinks to all files/folders that must be backuped.

In that case, it seems that I must use copy-links instead of links.

Unfortunately, it seems that hard links from previous backup are deleted

├── bkp
│   ├── 2017-05-30-162857
│   ├── 2017-05-30-162912
│   ├── 2017-05-30-163014
│   │   ├── photos
│   │   │   └── img
│   │   └── videos
│   │       └── vid
│   ├── backup.marker
│   └── latest -> 2017-05-30-163014

Here is the command :

rsync_tmbackup.sh --rsync-set-flags "-D --compress --numeric-ids --copy-links --hard-links --one-file-system --itemize-changes --times --recursive --perms --owner --group --stats --human-readable" tobackup bkp/
joekerna commented 7 years ago

Can the deletion of previous backups be related to #82?

laurent22 commented 7 years ago

Yes, looks like it's the same issue. @YannMoisan, please could you give a try to the latest version (which should be fixed) and confirm if it's now working for you?