<div dir="ltr"><span style="font-size:13px;line-height:19.5px">Hello,</span><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">I have read through the list of previous issues regarding this issue but haven't been able to resolve mine. I apologize in advance for the long text and am probably doing some simple typo. I have two servers in my setup:</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><b>Server 1</b></div><div style="font-size:13px;line-height:19.5px">Doing rsync with --link-dest daily and working as expected. I'm getting the hard links in the new daily directories. </div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><b>Server 2</b></div><div style="font-size:13px;line-height:19.5px">Running rsync daemon mode with following config</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><div>[offsite]</div><div>   path = /media/external/backup/</div><div>   comment = Offsite backup</div><div>   read only = no</div><div>   hosts allow = <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a></div><div>   auth users = backup</div><div>   secrets file = /etc/rsyncd.scrt</div><div>   uid = 0</div><div>   gid = 0</div></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><b>My Goal</b></div><div style="font-size:13px;line-height:19.5px">Server 1 has been running for several months now so it has several months of daily backups. I was able to do an initial sync to server 2 using -H option to keep my hardlink structure. That worked fine and my original plan was to just run the same rsync with -H after the daily backup was complete to keep both in sync. But that turned out to be very slow building the incremental file list as I'm guessing it scanned all files for each daily backup (even though they were hard lnked).</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">So my next plan was to just sync that latest daily backup from server 1 to server 2 and use the --link-dest option on server 2 to link it to the previous day.</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><b>The Problem</b></div><div style="font-size:13px;line-height:19.5px">This is the command I'm troubleshooting right now</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">rsync -a -v -n -i --delete --link-dest=/backup-2016-02-01-0100 --password-file=/media/external/scripts/offsite_rsync.pass /media/external/backup/backup-2016-02-02-0100 backup@192.168.2.102::offsite<br></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">It seems to be sending all files as new files (i.e. not picking up the link-dest option). I've tried using no slash at the beginning of link-dest, tried using ./ tried full path. etc.</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">Here is a snippet of the output from server 1 which is running the command:</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><f+++++++++ backup-2016-02-02-0100/media/external/owncloud/data/sam/files/Photos/2007/20070120 DC Air and Space Museum/IMGP0906.JPG</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">On server 2 there is no backup-2016-02-02-0100 directory. However, the link-dest option I'm using has the file on server 2:</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">-rw------- 147 www-data www-data 4454193 Jan 20  2007 /media/external/backup/backup-2016-02-01-0100/media/external/owncloud/data/sam/files/Photos/2007/20070120 DC Air and Space Museum/IMGP0906.JPG</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">Output of same file from server 1</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">-rw------- 151 www-data www-data 4454193 Jan 20  2007 /media/external/backup/backup-2016-02-02-0100/media/external/owncloud/data/sam/files/Photos/2007/20070120 DC Air and Space Museum/IMGP0906.JPG<br></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px"><b>Troubleshooting</b><br></div><div style="font-size:13px;line-height:19.5px">If I manually create the copy of server 2 first (cp -al backup-2016-02-01-0100 backup-2016-02-02-0100) and then run rsync without the --link-dest option I get the expected results. Only the files that changed or were removed/added are transferred.</div><div style="font-size:13px;line-height:19.5px"><br>Also I tried running the actual transfer without -n and it is indeed transferring all the old files.</div><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">Any help is appreciated.</div></div>