[GRLUG] Rsync link-dest?
Jeff DeFouw
mrj at plorb.com
Sat Jul 9 01:20:49 EDT 2011
On Fri, Jul 08, 2011 at 03:07:37PM -0500, L. V. Lammert wrote:
> Trying to fix an rsnapshot backup, .. so the need is to copy
> 'weekly.0' to 'daily.0' where all the files in 'daily.0' are
> hard-links to the originals in 'weekly.0' [which may themselves be
> hard-links]. It would appear that the rsync command should be
> something like:
>
> rsync -avH --link-dest=[path]/weekly.0 [path]/weekly.0 [path]/daily.0
>
> Unfortunately, it refuses to set the links after trying many
> variations - what's missing?
Do you have a slash after the source weekly.0? If not, it will copy
weekly.0 to [path]/daily.0/weekly.0 and then the structure won't match
the link-dest. You'd want this to copy only the contents of weekly.0:
rsync -avH --link-dest=[path]/weekly.0 [path]/weekly.0/ [path]/daily.0
--
Jeff DeFouw <mrj at plorb.com>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the grlug
mailing list