Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
backing up with rsync

backing up with rsync

2003-05-03       - By Anne Possoz

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

On saturday may 3rd, Jochen Kchelin wrot�e:

> what services must run on a machine
> which I wan 't to backup with rsync tunneling
> through ssh? Do I need rsyncd running on this machine?
> When I backup my RedHats everything works fine but
> when I try to backup a SuSE 7.2 I get an error!
> Something like "...bytes do not match.... "!
> I have no access to this machine at the moment so I
> can 't remember the error message in detail.
>
> Maybe there 's a problem with different ssh versions?
>
> I use the following:
>
> rsync -avz -e ssh user@(protected):/path/to/backup/* /backup/

There are 2 ways to use rsync. The one you suggest is perfetcly ok.
I prefer the equivalent writing:
rsync -avz --rsh=ssh user@(protected):/path/to/backup/* /backup/

Some suggestions would be:

1) always make a check before rsyncing, usin the -n option
rsync -avzn --rsh=ssh user@(protected):/path/to/backup/* /backup/

2) learn the difference between the last / in the "from " part:

rsync -avz --rsh=ssh src:/backup dest:/backup/
will rsync the directory backup as a directory, with everything
it contains; in this example, you would result with
dest:/backup/backup/... in the "to " dir.

rsync -avz --rsh=ssh src:/backup/ dest:/backup/
will rsync all the content of src:/backup but not the directory
itself; the result would be dest:/backup/...

rsync -avz --rsh=ssh src:/backup/* dest:/backup/
will rsync part of the content of src:/backup (the files starting
with a . will not be rsynced).

You don 't need any rsyncd for these commands.
The rsync server is used while using ":: " instead of ": " and
refer to the /etc/rsyncd.conf file on the corresponding server.
But that 's another story.

But all that does not explain what happens when you try to rsync
from a SuSE system.
If you are sure of your command line, you might have a problem
with ssh. You should first check that you can ssh to
user@(protected) The sshd should run on the SuSE computer.

            Anne