How can the --backup-dir be set to remote machine?

2016-02-02 Thread jupiter
Hi, I am running rsync backup on Centos 6, the following command does not seem work, the /backup/fll_copy was fine, but the /backup/Wednesday in the remote machine was not created even I changed the source contents several times. rsync -e "ssh -q -o StrictHostKeyChecking=no" --backup --backup-di

Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?

2016-02-03 Thread jupiter
Hi, I am runing rsync --backup --backup-dir=$BACKUPDIR where the BACKUPDIR=$(date +%d) to recycle the $BACKUPDIR in a month. But rsync does not clean the $BACKUPDIR before writing to it in cycling. I guess you have to clean it manually before the rsync can write to it. As my $BACKUPDIR is in rem

Re: Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?

2016-02-04 Thread jupiter
t. > > On 02/03/2016 08:33 PM, jupiter wrote: > > Hi, > > > > I am runing rsync --backup --backup-dir=$BACKUPDIR where the > > BACKUPDIR=$(date +%d) to recycle the $BACKUPDIR in a month. But > > rsync does not clean the $BACKUPDIR before writing to it in > >