Backup with rsync question
I am setting up a rotating 7-day #backup for my #yunohost, using #rsync. I managed to create a list of #cron jobs, like this:
but the problem is that rsync keeps adding files to target directories, instead of replacing their content, which is my intention.
Should I use rm to clean up the target before rsync, or is there a more intelligent way to do that?
sudo rsync -aur /home/yunohost.backup /media/backup_disk/YNHx260_bkp/Sunday
but the problem is that rsync keeps adding files to target directories, instead of replacing their content, which is my intention.
Should I use rm to clean up the target before rsync, or is there a more intelligent way to do that?
timorl
in reply to 8Petros [Signal: Petros.63] • • •8Petros [Signal: Petros.63] likes this.