On Tue, 10 Oct 2000, David Talkington wrote:
>I've run into the same problem, trying to run rsync over ssh. My
>/usr/bin/rsync -avx -e /usr/local/bin/ssh --delete \
> /my/dir/path/ remote.mydomain:/my/dir/path
>
snip
>
>Help?
I believe I can be of some assistance here -- what you're trying to do
can be done easily -- if the quotes are in the right place. Check out
my script here:
http://www.stealth.net/~morelife/t/scripts/archiver.html
Important things to note:
- The command in root's crontab that runs my script escapes the '%'
(percent signs) in the 'date' portion. Otherwise cron thinks they mean
line feed.
- Follow the convention in the rsync manpage:
remote.mydomain:"/my/dir/path"
and not
remote.mydomain:/my/dir/path
- Note that full pathnames are used - ymmv!
- The web page I point to has backslashes breaking up some of the long
lines. My real script doesn't. Call me superstitious...