At Monday, 04-11-02 20:07 (+1100), Christopher Vance wrote:
On Mon, Nov 04, 2002 at 07:53:34PM +1100, Matt Hyne wrote:
: rsync -acz -e ssh /usr/local backup:/backup/hostname
: rsync -acz -e ssh /local backup:/backup/hostname
:
: So I am attempting to rsync /usr/local and /local and clone these as
: backup:/backup/hostname/usr/local and backup:/backup/hostname/local
That's not what you asked it to do. Try
rsync -aczessh /usr/local/ backup:/backup/hostname/usr/local/
rsync -aczessh /local/ backup:/backup/hostname/local/
Note the full pathnames on the right side and all the extra '/'s.
The biggest problem with this is that it expects the remote machine to
already have those destination directories created - which I cannot do
since the script will run non-interactively and only allows rsync to be
executed from the source machine.
Are you sure you need the 'c' option?
Just another check to make sure that the file was copied without
error. Any good reason not to use it ?
--
Christopher Vance
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug