[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using rsync over SSH

On Thu, May 27, 2004 at 10:12:27PM -0700, Bill Moseley wrote:
> I need to setup a way to rsync from a Solaris machine to a
> Debian machine.  I don't have root on the Solaris box and I
> don't want the Debian user to have access to the Solaris
> machine other than to rsync some files in read_only mode.  I
> want to use rsync over ssh, and I'll have to install ssh
> locally in my account.

here's my cron entry:

09 03    * * *    /usr/bin/rsync -vaz -e /usr/bin/ssh --delete /home/office/

reformatted for readability, this runs at 3:09am daily:

	/usr/bin/rsync	\
		-vaz	\
		-e /usr/bin/ssh	\
		--delete	\	\

this copies /home/shared from to local /home/office
directory. to go the other way -- piece of cake! -- just reverse
the last two items:

	/usr/bin/rsync	\
		-vaz	\
		-e /usr/bin/ssh	\
		--delete	\
		/home/office/	\

this assumes passwordless ssh connections are already set up, of
course. (ssh-agent, ssh-keygen, which see.)

I use Debian/GNU Linux version 3.0;
Linux boss 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown
DEBIAN NEWBIE TIP #50 from Will Trillich <will@serensoft.com>
Put something like this in your ~/.muttrc file:
	set editor="vim -c 'set ft=mail tw=64'"
That ensures that Vim syntax highlighting is set for "mail"
patterns, and that text will wrap automatically at 64
columns. (For more info, try ":help tw" or ":help ft" when
inside Vim. Also, browse /usr/share/doc/mutt/html/manual.html
for the full scoop on customizing Mutt.)

Also see http://newbieDoc.sourceForge.net/ ...

Reply to: