Results 1 to 8 of 8
Ok, what I am trying to do is use rsync to copy a directory and its contents to a remote server that I access you using ssh. I have been ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-12-2007 #1
rsync -arvv -e ssh /home/local_dir ssh_login@server_address:./Backup
If I remove the : after the adress it makes the backup on the local computer.
Any clues about how I can do this simple task?
- 11-12-2007 #2
Looks ok at a glance. What error are you getting?
You might change the remote path to look like:
rsync -arvv -e ssh /home/local_dir ssh_login@server_address:/home/login/Backup
- 11-12-2007 #3
Thanks for the reply, I tried it and got
bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: remote command not found (code 127) at io.c(454) [sender=2.6.9]
- 11-12-2007 #4
Hmm. And what if you run:
$ ssh_login@server_address which rsync
- 11-12-2007 #5
Running which rsync from the server givesCode:
- 11-12-2007 #6
- Join Date
- Nov 2004
- 11-12-2007 #7Originally Posted by Vergil83
What I'd recommend is providing, along with your other options:
It seems like rsync on the client side is confused by that strange path (even though it's apparently in the user's PATH). So providing it explicitly may be the solution.
- 11-13-2007 #8
Yes it is a Solaris server.
And *drum role* it worked! Stating the remote rsync path did the job. Thank you a ton anomie.
And thanks bigtomrodney, I was guessing at the options.