[ale] rsync + ssh + cron

Nathan J. Underwood ale1 at cybertechcafe.net
Tue May 23 13:22:02 EDT 2006


Thanks for the quick response.  The command line that the script is 
generating (
/usr/bin/rsync -av -e 'ssh -p 2201' /home/nathan/source/ 
nathan at lint-1:/home/nathan/destination --progress --stats --compress 
--delete ) is actually working if I just copy and paste it to a [new] 
command line.  The problem though is that it won't run from the script.

Jim Popovitch wrote:
> Nathan J. Underwood wrote:
>   
>> The error that I'm getting (figured that may be handy) when I try to run 
>> it is:
>>
>> /usr/bin/rsync -av -e 'ssh -p 2201' /home/nathan/source/ 
>> nathan at lint-1:/home/nathan/destination --progress --stats --compress 
>> --delete
>> Missing trailing-' in remote-shell command.
>> rsync error: syntax or usage error (code 1) at main.c(335) [sender=2.6.8]
>> [nathan at linux-fs2 scripts]$
>>     
>
> Try this line:
>
> /usr/bin/rsync -av -e "ssh -p 2201" --delete --compress
>        /home/nathan/source/ nathan at lint-1:/home/nathan/destination/
>
>
> hth,
>
> -Jim P.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>   
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list