ssh & keep absolute local paths from --include-from=file remotely

Thomas Otto 3.1415926535897932384626433832 at gmx.net
Tue Nov 11 11:13:40 EST 2003


>>So all I want is rsyncing files while preserving their _absolute_ paths 
>>on the target machine which doesn't seem possible.
> 
> Check out the --relative (-R) option in the man page.  That would let
> you do something like this:
> 
> rsync -avR `cat /path/file-list` dest:/
> 
> Or, the CVS version of rsync which has the --files-from option:
> 
> rsync -av --files-from=/path/file-list / dest:/
> 
> (Note that the --files-from option implies --relative.)

Thanks, that's what I was looking for! Indeed 'relative' plus just '/' 
as the path sortof becomes absolute. I had no Idea this option would 
keep paths so I skipped it :).

Got my backup now happlily working with rsync-cvs.


       -Thomas




More information about the rsync mailing list