I am trying to set up a shell script under Debian GNU/Linux to backup a directory and subdirectories to a remote NAS running Linux over SSH. This connection has to be encrypted.
I have tried a couple different approaches involving
rsync rsh and such but without luck. I know how to set up the
crontab, but I need a script that will run unattended (i.e., it won't ask for password)
Could anyone help me?
EDIT: I can successfully login without a password now.
The problem now is to get rsync to copy the files in
It only copies one folder from
EDIT: Seems local system has one /backups and one /backup... I have tried with /backups when I should have used /backup...
rsync -avzr -e ssh /backup/ admin@[IP]:/backups/