Originally Posted by lykwydchykyn
Why not just put the commands that worked manually into a script and run that in cron?
Im not sure that would work as you need to run 'ssh -L 873:localhost:873 firstname.lastname@example.org
' as root so it asks you for both your root password then your ols password. Once they have both been entered it holds the terminal window open where no more commands can be entered.
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-28-server x86_64)
* Documentation: https://help.ubuntu.com/11.10/serverguide/C
New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Sat Mar 2 18:27:35 2013 from XXX-XXX-XXX-XXX.zone9.bethere.co.uk
Connection: XXX.XXX.XXX.XXX 53624 184.108.40.206 22
Client: XXX.XXX.XXX.XXX 53624 22
You then need to open a second terminal window to run the rsync command.
rsync -avz --progress -b ~/Downloads rsync://username@localhost/username
MacBook:~$ rsync -avz --progress -b ~/Downloads rsync://username@localhost/username
building file list ...
819 files to consider
3768320 0% 106.51kB/s 1:54:15
So I have no idea where to start scripting that or even if it is possible.
Originally Posted by propofol
rsync -avz --progress -e 'ssh -L 873:localhost:873' email@example.com:/username ~/Downloads/
Thanks but that didn't work it still tells me I have a dirty shell
MacBook:~$ sudo rsync -avz --progress -e 'ssh -L 873:localhost:873' firstname.lastname@example.org:/username ~/Downloads/
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at /SourceCache/rsync/rsync-42/rsync/compat.c(61) [receiver=2.6.9]
This is the example they show on the ols website
Thanks again for the help.