> 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
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
│ │
Matt McCutchen wrote:
On Wed, 2008-09-24 at 13:00 +1000, James Robertson wrote:
I tried this but it doesn't seem to work for me as you describe. I just
created a test setup. The commands I'm running are as follows:
[EMAIL PROTECTED]:~# rsync --version
rsync version 2.6.9
Try this instead:
rsync [OPTIONS] --include-from=/tmp/BACKUPFILE --exclude='*'
/var/data/shares/vmbackups/ /mnt/usb_backup/SFSYDVS01/daily.0/VM/
This way, rsync will scan the destination directory for deletions (since
you have -a without --files-from, which implies -r) and will delete the
old