laurent22 / rsync-time-backup

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

What to do to follow sym links on source part? #253

Open richo67 opened 1 year ago

richo67 commented 1 year ago

Until now I was using for many years your script to backup my growing set of photos, when they went over 2TB I needed to buy new disk I bought new 2 TB. Now I have part of collection on different disk. I have recreated same structure as before using symlinks to top folders. Your script is not handling it as before. I tried to add all kinds of rsync options -L -K and some other but I have failed.

Source is win10 running from WSL destination is over ssh NAS on network using ext4 file system

I like it to continue backing up to destination on my NAS over ssh resuing earlier stored files with use of hard links. Can you help what to do?

Source part was:

d:\imgs\2001
d:\imgs\2002
d:\imgs\20??

Now I have

m:\2001
m:\2002
...
n:\2020
n:\2021

and I have created:

c:\imgs\2001 -> m:\2001
c:\imgs\2002 -> m:\2002
...
c:\imgs\2020 -> n:\2020
c:\imgs\2021 -> n:\2021

on destination

/volume1/backup/imgs/2001
/volume1/backup/imgs/2002
...
/volume1/backup/imgs/2020
/volume1/backup/imgs/2021