On Mon 23 Apr 2012, James Robertson wrote:
>
> So on the destination the structure is:
>
> destination> tree /Destination/
> /Destination/
> ├── R
> │ ├── Radiohead
> │ │ └── OK Computer
> │ │ ├── 01 - Radiohead - Airbag.flac
> │ └── Red Hot Chilli Peppers
> │ └── Greatest Hits
> │ ├── 01 - Red Hot Chili Peppers - Under the Bridge.flac
>
> I want to prune all directories so only the files are placed into the
> root of /Destination/ e.g.
>
> destination> tree /Destination/
> /Destination/
> ├── 01 - Radiohead - Airbag.flac
> ├── 02 - Radiohead - Paranoid Android.flac
> ├── 01 - Red Hot Chili Peppers - Under the Bridge.flac
> ├── 02 - Red Hot Chili Peppers - Give It Away.flac
How about:
cd Music
rsync -ai --relative */*/*/./ /Destination/
Assuming the argument list doesn't get too large, I think it should
work as desired.
Paul
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html