Matt McCutchen schrieb:
Thanks for the help but I've still had no luck with this. The command
now looks like:
backupstoremove.py | rsync -av --progress --no-p --no-g --delete-before
--stats --include-from=- --include=/media/300GIGHD/backups/dar/restore
--exclude="*.dar" /media/300GIGHD/backup
On Mon, 2009-07-20 at 23:24 +0200, Tim Edwards wrote:
> Matt McCutchen schrieb:
> >
> > No, rsync will only do that if if you have it
> > "synchronize" /USBstick/backups/dir , i.e., specify a source directory
> > that maps to it. Just copying several dirs _into_ /USBstick/backups/dir
> > does not
Matt McCutchen schrieb:
No, rsync will only do that if if you have it
"synchronize" /USBstick/backups/dir , i.e., specify a source directory
that maps to it. Just copying several dirs _into_ /USBstick/backups/dir
does not do the trick. See the description of --delete in the man page.
Someth
On Tue, 2009-07-14 at 13:01 +0200, Tim Edwards wrote:
> 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_todaysdat
Apologies, I think I'm wrong about my previous reply, just checked and
--delete is "implied"...
You need to use --delete instead of just the --delete-before. You do
not actually need the "before" bit as this is the default for --
delete.
-david
On 14 Jul 2009, at 12:01, Tim Edwards wrote:
On 14.07.2009 13:01, Tim Edwards wrote:
> 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/back
You need to use --delete instead of just the --delete-before. You do
not actually need the "before" bit as this is the default for --delete.
-david
On 14 Jul 2009, at 12:01, Tim Edwards wrote:
I have a script transferring some backup files onto a USB stick, which
has limited space. I use rsy
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