Quote:
Originally Posted by cbtshare
Ok, I'm trying to just mirror the directory.When I go :
rsync -vaz --rsh="ssh -l root" /home/you 192.168.1.1:/home/bak
it just ask for a password then nothing happens.
any help please?
|
Why not use keys in the .ssh directory to avoid the need for typing password?
Root logins via ssh may not be safe, so I transfer files to a user account, account name on destination machine is "user".
On my system I would write it like this:
rsync -azP -e 'ssh -p 22' /home/you/ user@192.168.1.1:bak/
This is with ssh on port 22, backing up contents of local directory /home/you/ to remote directory /home/user/bak/
Login as user places me at /home/user/ therefore I only need specify bak/ as the destination directory.