<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm writing a script to sync some mp3 files. Due to a limitation in
the number of destination files that can be read from my thumb
drive, I'm not looking to preserve the original file structure
(actually, I'm looking to sync <b>only the files</b> to the new
destination directory).<br>
<br>
The source files are all subfolders under /backup/Music:<br>
<br>
./Adrian Legg/Mrs. Crowe's Blue Waltz/Paddy Goes To Nashville.mp3<br>
./Adrian Legg/Mrs. Crowe's Blue Waltz/Sour Grapes.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Divorcee's Waltz.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Mrs. Crowe's Blue Waltz.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Nora Handley's Waltz.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Queenie's Waltz.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Silent Night.mp3<br>
./Adrian Legg/Wine, Women & Waltz/St. Mary's (12 String).mp3<br>
./Adrian Legg/Wine, Women & Waltz/St. Mary's (Nashville
Tuning).mp3<br>
./Adrian Legg/Wine, Women & Waltz/The Laird.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Tune For Derrol.mp3<br>
./Adrian Legg/Wine, Women & Waltz/Waltzin' With Jesus.mp3<br>
./Against Me!/Against Me! - I Was a Teenage Anarchist.mp3<br>
<br>
<br>
The script that I'm running works - sort of - in that it syncs the
files; but it syncs their parent directories too, which I'm trying
to avoid.<br>
<br>
<br>
This is the command that I'm running now ($f is defined as the name
of the "files from" and the destination directory name).<br>
<br>
rsync -rvt --delete --progress --files-from=/tmp/split/$f
"/backup/Music" /media/bill/35BF-4240/$f/ >> /tmp/rsync.txt<br>
<br>
<br>
In short, this is the resultant file structure from the command
above:<br>
<br>
/media/bill/35BF-4240/$f/Adrian Legg/Mrs. Crowe's Blue Waltz/Paddy
Goes To Nashville.mp3<br>
<br>
...but I really want it to look like this:<br>
<br>
/media/bill/35BF-4240/$f/Paddy Goes To Nashville.mp3<br>
<br>
Any thoughts on how to do that?<br>
<br>
Thanks in advance,<br>
Bill D.<br>
<br>
<br>
<br>
</body>
</html>