link-dest question
doug at safeport.com
doug at safeport.com
Tue Jan 5 09:39:37 MST 2010
On Tue, 5 Jan 2010, Wayne Davison wrote:
> On Mon, Jan 4, 2010 at 12:33 PM, <doug at safeport.com> wrote:
> rsync -vaxH --numeric-ids --delete --exclude=/home/apache/logs \
> --link-dest=/mnt/200912/newharbor/home -e ssh newharbor.safeport.com:/home \
> 201001/newharbor/home/
>
>
> Is that newharbor/home/home dir really desired? Without a trailing slash on
> the source, the "home" dir is part of the transfer, and will be expected to
> exist inside the link-dest dir and will be created inside the destination dir.
>
The command itself is what I want. E.g., backing up all user data on a
webserver. My isssue is that --link-dest has no effect. That some files are the
same with matching timestamps and are not hardlinked is shown by the following:
artemis:/mnt# diff
/mnt/201001/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
/mnt/200912/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
artemis:/mnt# ls -ilT
/mnt/201001/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
143688454 -rw------- 1 root 2817 6291456 Nov 27 10:30:26 2006
/mnt/201001/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
artemis:/mnt# ls -ilT
/mnt/200912/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
140281632 -rw------- 1 root 2817 6291456 Nov 27 10:30:26 2006
/mnt/200912/newharbor/home/5yearmission/htdocs/newvoyages.com/JeffHayes/.IHW_DVD_Cover.jpg.RLZqbg
My question[s] is/are:
does one of the options conflict with link-dest?
is the command correct, ie does anything in it override link-dest?
is this a know bug in the version I am using?
...
> If it is not, either add a trailing slash to the source, or remove the
> trailing "home" from both the link-dest arg and the destination.
>
> ..wayne..
>
>
_____
Douglas Denault
http://www.safeport.com
doug at safeport.com
Voice: 301-217-9220
Fax: 301-217-9277
More information about the rsync
mailing list