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.
Change directory to a symlink: rsycn got confused

Change directory to a symlink: rsycn got confused

2004-01-28       - By Reuben D. Budiardja

 Back
Reply:     1     2     3  


Hi all,
Here is what I thought an interesting problem. I 'm wondering if there is a
trick for this.

I am using rsync to do a minimal backup, by synchronizing a certain directory
(/home/httpd) from machine webserver to another machine (backup) every night.
At some point, our developer changed the directory structure in the
webserver. He removed some directory, and instead make it a symlink to
another directory.
Then rsync ran at night, and it got confused. This is how I run rsync from the
backup server

jdoe@(protected)$ > rsync -e ssh -avzu root@(protected):/home/httpd/html
/home2/backup/webserver/

It got confused because it tries to delete the directory in backup, but it
cant because some file exists. It then tries to create the symlink with the
same name, and it fails again because that filename already exists (as a
directory). Below is some of the error message. Any tricks to have rsync
resolved this? I can of course correct this manually by rm -rf ing the
offending directories in the backup server, but just wondering if there 's
clever way to do this.

delete_file: rmdir(html/OJTA2dev/ojta/c1c/precursors/archeo/medwheel_ic) :
Directory not empty
rsync: symlink "html/OJTA2dev/ojta/c1c/precursors/archeo/medwheel_ic " - >
"../../../media/precursors/archeo/medwheel_ic ": File exists
delete_file: rmdir(html/OJTA2dev/ojta/c1c/precursors/archeo/stonehenge_ic) :
Directory not empty
rsync: symlink "html/OJTA2dev/ojta/c1c/precursors/archeo/stonehenge_ic " - >
"../../../media/precursors/archeo/stonehenge_ic ": File exists

...

rsync error: some files could not be transferred (code 23) at main.c(1045)

Thanks for any help.
RDB
--
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
"To be a nemesis, you have to actively try to destroy
something, don 't you? Really, I 'm not out to destroy
Microsoft. That will just be a completely unintentional
side effect. "
- Linus Torvalds -


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list