Hi I am trying to backup an ubuntu 16.04 server to a freeNAS backup server using rsync and crontab.
The command I am using for rsync is
sudo rsync --delete --delete-excluded -az /home/backups/ email@example.com:/mnt/backupvol/production_nfs/db-server-master/
When I run this command from command line first it asks for sudo password then root password for
192.168.1.6. Then command is executed as expected.
when I try to
sudo ssh firstname.lastname@example.org then also it asked for both passwords. I have tried to use
sudo ssh-copy-id email@example.com and have copied the keys successfully.
My question is
- How do I bypass password entry
- when I run rsync command with crontab I am getting wrong password errors
How do I correct these?