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

2016-02-03 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The backup dir is relative to the target dir so if the target is remote so is the backup dir. On 02/03/2016 12:11 AM, jupiter wrote: > Hi, > > I am running rsync backup on Centos 6, the following command does > not seem work, the /backup/fll_copy was

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-03 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Obviously you can ssh an rm -rf. Alternatively, if you are in a restricted environment where you are only allowed to use rsync you can rsync --delete an empty directory to it. On 02/03/2016 08:33 PM, jupiter wrote: > Hi, > > I am runing rsync --back