logo       

Re: --delete doesn't appear to be working: msg#00023

sysutils.backup.rsnapshot.general

Subject: Re: --delete doesn't appear to be working

On Fri, Jul 07, 2006 at 08:11:04PM -0500, Ben Lake wrote:
> So I've recently uncommented rsync_long_args and applied --delete.

This shouldn't make any difference - the commented out rsync_long_args
is the default.

> However, the soft link that no longer exists on the client machine still
> throws an error when rsnapshot tries to chgrp it (as it follows the link
> to the non-existent path on the server).

I've tried to reproduce the problem you are seeing and I have not been
able to.

I am using Linux (Fedora Core 3), and running rsnapshot 1.2.9 from a
root shell (not from cron), like this:
# rsnapshot -c /tmp/rsnapshot.conf daily

The test config file looks like this:

$ awk '/^[^#]/' /tmp/rsnapshot.conf
config_version 1.2
snapshot_root /tmp/snapshots/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
cmd_du /usr/bin/du
interval daily 7
interval weekly 4
interval monthly 3
verbose 2
loglevel 3
logfile /tmp/rsnapshot.log
backup /tmp/foo ./
$

/tmp/snapshots and /tmp/foo are both on / which is an ext3 file system.

> Looking at daily.0 still shows the link!
>
> What's the deal? I know rsync works, but why isn't this link being
> deleted? Am I missing something in how the linking works to simulate
> snapshots?

Can you try to simulate the problem in a test area by creating some
files and using a separate config file (perhaps like the one above).
If you find the same problem, then send us a list of commands to run
to re-create your test environment and run the same test.

> Ben Lake
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> rsnapshot-discuss mailing list
> rsnapshot-discuss@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

--
___________________________________________________________________________
David Keegel <djk@xxxxxxxxxxxxxxxxxx> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise