You probably want the -H option too, to preserve hardlinks. Also, my
lizard brain is telling me you want trailing slashes too. I'll take
Michael's suggestion about -z as given without further research and suggest:
rsync -v -a -H /media/bkup1/ /media/bkup2/
I also suggest reading "man rsync" to confirm. In a cronjob, the -v
maybe isn't needed.
On 4/15/23 08:16, Rich Shepard wrote:
I want to write a cron job for root to copy the daily backup from
/media/bkup1/ to /media/bkup2/. Is this rsync command sufficient?
rsync -avz /media/bkup1 /media/bkup2
TIA,
Rich