Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A script to sync podcasts to a USB drive or SD card' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to sync podcasts to a USB drive or SD card
Authored by: amacaulay on Mar 30, '05 07:43:34AM
I may be missing something, but it looks as though your requirement is what I'd describe as a "merge" rather than a "sync." You want new podcasts to make it onto the device, but you don't want the deletion of podcasts from your source directory to be reflected in the destination directory. You also don't want changes to the destination directory to trigger any changes to the source directory. The quick tests I've done suggest the simple command line
cp -Rn source-dir dest-dir
would do this. The R flag makes the command recurse, the n flag prevents overwriting of existing files in the destination. Andy.

[ Reply to This | # ]
Authored by: amacaulay on Mar 30, '05 07:45:38AM

Ah - the cp method would resurrect files you deleted from your device. Sorry.

[ Reply to This | # ]