Zhiming Zhou
2008-Sep-28 07:39 UTC
Does "--link-dest" option supports link to remote backup server?
Hello everyone: I keeps using rsync to backup my files on my laptop from one folder to another, and to reduce disk usage, so I use "--link-dest" option for incremental backup like this: *rsync -a --link-dest=/local/old /tmp/myfile /local/new* And "/local/old" is backuped some days ago, I use "--link-dest" option to keep unchanged files as links to new destination "/local/new", and it works so well. ------------------------------------------------------- Today I have a remote rsync server, I suppose the "--link-dest" option should also works in remote server, so I use rsync like this: *rsync -a --link-dest=/remote/old /tmp/myfile user@192.168.0.10: :backup/remote/new* and "/remote/old" directory on 192.168.0.10 is backuped some days ago, however, with command memtioned above, unchanged files in "/remote/old" are not changed(linked). Also I tried to use: *rsync -a --link-dest=**user@192.168.0.10::backup**/remote/old /tmp/myfile user@192.168.0.10::backup/remote/new *and change "/remote/old" absolute path to relative path like "../old", but unchanged files are still not been linked. So, I want to know does the "--link-dest" option allow remote path been linked? Thanks -------------- next part -------------- HTML attachment scrubbed and removed
Matt McCutchen
2008-Sep-28 14:13 UTC
Does "--link-dest" option supports link to remote backup server?
On Sun, 2008-09-28 at 15:39 +0800, Zhiming Zhou wrote:> Today I have a remote rsync server, I suppose the "--link-dest" option > should also works in remote server, so I use rsync like this: > > rsync -a --link-dest=/remote/old /tmp/myfile > user@192.168.0.10::backup/remote/new > > and "/remote/old" directory on 192.168.0.10 is backuped some days > ago, > however, with command memtioned above, unchanged files in > "/remote/old" are not changed(linked).That command should work. If you pass -i, the output will tell you whether rsync isn't finding the files in /remote/old at all or whether a preserved attribute differs. Matt
Wayne Davison
2008-Sep-29 00:05 UTC
Does "--link-dest" option supports link to remote backup server?
On Sun, Sep 28, 2008 at 03:39:06PM +0800, Zhiming Zhou wrote:> rsync -a --link-dest=/remote/old /tmp/myfile user@192.168.0.10::backup/remote/newAs long as remote/old is a path inside the backup module, and is on the same filesystem as the remote/new path inside the backup module, it should work fine. If you're using at least 3.0.0, it will alert you if you have specified a directory that does not exist. If it's not working, check the version of the destination rsync so we can see if it is old enough to have a bug that might affect the linking. ..wayne..
Reasonably Related Threads
- link-dest to remote server doesn't work in Linux client
- SMB2 write performace slower than SMB1 in 10Gb network
- Memory problems with large dataset in rpart
- Some questions about PCI-passthrough for HVM(Non-IOMMU)
- Some questions about PCI-passthrough for HVM(Non-IOMMU)