<div dir="ltr"><div><div><div><div>Hi,<br><br></div>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. <br><br></div>I guess you have to clean it manually before the rsync can write to it. As my $BACKUPDIR is in remote machine, do you have to run ssh to delete it first before calling rsync in a script? Or if there is better parameter in rsync to automatically delete the old $BACKUPDIR, and create a new one?<br><br></div>Thank you.<br><br></div>- j<br></div>