I have some issues (2) with automation of my backup.
What I want:
-> 1 backup every week
-> no manual input
How do I do this? I have a working rsync script.
I suppose I have to make ssh keys.
rsync -avz -e "ssh -p2222" --numeric-ids --delete --exclude-from=/home/XXXX/backup.exclude --stats --link-dest="../`date +%Y-%m`" /home/XXXX/Documents "XXXX@XXXXX:/Path/to/destination/`date +%Y-%m-%d`/"
My laptop is mobile, so the script should check whether I'm at home (so if the NAS is available or not). How do I do this?
Same story for my desktop but the other way around. I would like one backup every week of my NAS. The desktop is not always on. How do I automate this, without over using the desktop at startup so it is still useable...