I have a script transferring some backup files onto a USB stick, which has limited space. I use rsync 3.0.5 with the following command: rsync -av --delete-before /local/backups/dir/backup1_todaysdate /local/backups/dir/backup2_todaysdate /local/backups/dir/backup3_todaysdate /USBstick/backups/dir
The USB stick runs out of space if more than 1 backup set is put on it, so I'd assumed that by using the --delete-before option would first scrub /USBstick/backups/dir of any files that I hadn't listed to be transfered - is this how it works? Because it doesn't seem to work that way - I have to manually delete the old backups from the USB stick before transferring the new. Thanks for any help Tim Edwards -- 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