[oclug] rsync, ssh, and cron

Derek T. Murphy (Home) derekm at NightTiger.ca
Wed Apr 7 15:40:05 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 7 Apr 2004,  [JB]= Joe Burpee wrote:

 > [JB] On Wed, Apr 07, 2004 at 09:04:26 -0400, Derek T. Murphy (Home) wrote:

I *gotta* stop talking (typing?) before I'm really awake...

 > [JB] > su - dle -c 'rsync -t -e ssh -aqz www.foo.bar:/usr/websites/foo.bar/www
 > [JB] > /home/dle/projects/foo/
 > [JB] >
 > [JB] > This attaches a pseudo-terminal to the command. (I suspect there's
 > [JB] > something in the user's .bashrc that uses escape chars is the problem.)
 > [JB]
 > [JB] I believe rsync -t means "preserve times".  You probably want ssh -t:
 > [JB]                rsync -e "ssh -t" ...

Yep, exactly. The "-t" is SUPPOSED to belong to the ssh command...
 su - dle -c 'rsync -e ssh -t -aqz www.foo.bar:/usr/websites/foo.bar/www
  /home/dle/projects/foo/

Do I get away with claiming: Typo? Lysdexia? (Recursive dyslexia joke)
Typing too fast for the fingers? [OK, so 1 word per minute is my top
speed...]

- -- 
                 Derek T. Murphy <DerekM at NightTiger.ca>
    Night Tiger Inc.  Kanata,  Ontario,  Canada  (613) 266-NTSC (266-6872)
   System Administration/Network Security  PGP/GPG keys: www.NightTiger.ca
           "The answer is *computers*. What's your _question_?"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAdFkaRVr2W6BTungRAuoKAJ4nD4gqbBF346U256l6ikDxxLRHNQCgxF1r
MJBca0GH17MByi5DlnGS6fo=
=uwxM
-----END PGP SIGNATURE-----




More information about the OCLUG mailing list