copying base file rather than complete directory structure
Matt McCutchen
hashproduct+rsync at gmail.com
Mon Apr 16 16:38:01 GMT 2007
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
More information about the rsync
mailing list