I'm fairly new to Linux & am starting to use rsync as my sync tool.
I have a command line that's working well for me:
rsync -havz --progress --stats --delete --exclude '*.log' --log-file=/backup/_logs/$(date +%Y%m%d)_rsync.log root@192.168.0.100:/home/ /backup/360soaa2/
But, when I try to add put this in a bash script, the destination folder (360soaa2) isn't working. I get a message in rsync saying:
created directory /backup/360soaa2/\#015
And a folder is created within /backup/360soaa2/
What am I doing wrong?
Thanks