Re: rsync files from subfolders on source to root of a folder on destination

2012-04-24 Thread James Robertson
> I think hard-links are the easiest solution. > > mkdir hardlinks > find Music -type f -print0 | xargs -0 cp -al -t hardlinks > (You get a warning from cp about doubles, if any) > > Then you can rsync the 'hardlinks'-directory as usual. > > When you want to update you should just 'rm -rf hardlinks

Re: rsync files from subfolders on source to root of a folder on destination

2012-04-23 Thread Matthias Schniedermeyer
On 23.04.2012 16:50, James Robertson wrote: > I wish to sync a bunch of flac files that reside in various subfolders > to the root of a folder on a destination. > > An example of the directory structure on the source is: ... I think hard-links are the easiest solution. mkdir hardlinks find Musi

Re: rsync files from subfolders on source to root of a folder on destination

2012-04-23 Thread Paul Slootman
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 H

Re: rsync files from subfolders on source to root of a folder on destination

2012-04-23 Thread Greg Deback (rsync)
If I were you, I would start by creating a unique folder, the image of Destination/, and fill it with symlinks to your flac files, using -exec, *then* calling rsync only once with the -L option (--copy-links). Thus you should be able to benefit from the --delete option and keep an up-to-date destin

rsync files from subfolders on source to root of a folder on destination

2012-04-22 Thread James Robertson
I wish to sync a bunch of flac files that reside in various subfolders to the root of a folder on a destination. An example of the directory structure on the source is: source> tree Music/ Music/ ├── R │ ├── Radiohead │ │ └── OK Computer │ │ ├── 01 - Radiohead - Airbag.flac │ │