WARNING: Could not lchown() symlink "..."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsnapshot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: rsnapshot
Hi,
I use rsnapshot to backup some stuff to an NFS share (if that kind of backup target is relevant; exported with option "no_root_squash" to allow full access for rsnapshot, which runs as root).
I noticed that rsnapshot always returned code 2, which indicates warnings according to the man page (which were not printed to stdout although I have the default configuration with "verbose 2", which means "Print errors and warnings only" according to the default rsnapshot.conf). So I raised the value for "verbose" to 3 and got the following warning messages on stdout:
WARNING: Could not lchown() symlink "/mnt/backup/
Searching the web about this, I found e.g. http://
Running rsnapshot again, I no longer get these warnings, so I guess this really fixed them.
Could you please take a look and check what could be done here to make "rsnapshot" work without these warnings? Is the "Lchown" Perl module available in Intrepid? If yes, what do you think about adding a dependency to that package from rsnapshot? If not, would it be possible to either make it available somehow (probably you wouldn't do it yourself, but ask someone to take that part) or document it somewhere (where? I don't have that much experience with the "Ubuntu way" here by now, still learning...)?
Thanks and best regards
Heiko
tags: | added: patch |
Perl lchown package in Jaunty: liblchown-perl
Installing this package stopped the rsnapshot lchown-warnings for me.
It should probably be a dependency of the rsnapshot package.
Perhaps a better alternative than to use rsnapshot's internal copy-function is to use the cp binary. conf: ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
From /etc/rsnapshot.
-------
# LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
#
# See the README file or the man page for more details.
#
cmd_cp /bin/cp
-------
And if you enable link_dest, rsnapshot does not seem to use any copy command at all (rsync does the job): ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
# If your version of rsync supports --link-dest, consider enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
#
link_dest 1
-------
These two alternatives do not require the lchown perl module.