copying base file rather than complete directory structure

SteveT steve at tucknotts.me.uk
Mon Apr 16 17:10:08 GMT 2007


Matt,
Thanks for that.
I had tried the --relative and R options with no joy and even after you
pointed out the --no-relative option I couldn't see it in the --help/man
pages until it dawned on me the --no-OPTION was it.....senility has
definitely set in...

Thanks again....

Matt McCutchen-3 wrote:
> 
> On 4/16/07, SteveT <steve at tucknotts.me.uk> wrote:
>> The base structure is /a/b/c under that structure I have /d/e and finally
>> files 'f'. I create a list of the /d/e/f files and put them in a file and
>> then use:
>> rsync -auvP /a/b/c --files-from=myFileList targetBaseDir
> [...]
>> Now what I also want to do is to ignore the /d/e directories, so
>> basically
>> rsync the files 'fi at the bottom of the directory structure directly
>> into
>> targetbaseDir to end up with a result of /targetBaseDir/f
>>
>> Is this possible? I can't see an option that implies 'copy just basename
>> file'
> 
> You want --no-relative .
> 
> Matt
> -- 
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> 
> 

-- 
View this message in context: http://www.nabble.com/copying-base-file-rather-than-complete-directory-structure-tf3585454.html#a10020385
Sent from the Samba - rsync mailing list archive at Nabble.com.



More information about the rsync mailing list