You are not logged in.

#1 2012-07-02 00:02:49

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

rsync errors (no such file or directory)

I'm getting some errors during backup from rsync:

2012/07/02 00:31:48 [9085] rsync: stat "/mnt/IomegaHD/var/abs/community/sakura/.PKGBUILD.6LcDO6" failed: No such file or directory (2)
2012/07/02 00:31:48 [9085] rsync: rename "/mnt/IomegaHD/var/abs/community/sakura/.PKGBUILD.6LcDO6" -> "var/abs/community/sakura/PKGBUILD": No such file or directory (2)
2012/07/02 00:32:00 [9939] rsync: stat "/mnt/IomegaHD/var/abs/extra/gtkhtml/.PKGBUILD.QoY10x" failed: No such file or directory (2)
2012/07/02 00:32:00 [9939] rsync: rename "/mnt/IomegaHD/var/abs/extra/gtkhtml/.PKGBUILD.QoY10x" -> "var/abs/extra/gtkhtml/PKGBUILD": No such file or directory (2)
2012/07/02 00:32:05 [9085] rsync: stat "/mnt/IomegaHD/var/abs/extra/pygobject2/.PKGBUILD.6xaypk" failed: No such file or directory (2)
2012/07/02 00:32:05 [9085] rsync: rename "/mnt/IomegaHD/var/abs/extra/pygobject2/.PKGBUILD.6xaypk" -> "var/abs/extra/pygobject2/PKGBUILD": No such file or directory (2)
2012/07/02 00:33:44 [9939] rsync: stat "/mnt/IomegaHD/var/lib/pacman/local/kdeplasma-addons-applets-frame-4.8.4-2/.desc.4j32nU" failed: No such file or directory (2)
2012/07/02 00:33:44 [9939] rsync: rename "/mnt/IomegaHD/var/lib/pacman/local/kdeplasma-addons-applets-frame-4.8.4-2/.desc.4j32nU" -> "var/lib/pacman/local/kdeplasma-addons-applets-frame-4.8.4-2/desc": No such file or directory (2)
2012/07/02 00:34:08 [9085] rsync: stat "/mnt/IomegaHD/var/lib/pacman/local/xinetd-2.3.15-2/.files.zQAwn3" failed: No such file or directory (2)
2012/07/02 00:34:08 [9085] rsync: rename "/mnt/IomegaHD/var/lib/pacman/local/xinetd-2.3.15-2/.files.zQAwn3" -> "var/lib/pacman/local/xinetd-2.3.15-2/files": No such file or directory (2)
2012/07/02 00:34:29 [9939] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]
2012/07/02 00:34:30 [9085] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]

I don't know as much as I should about how rsync works but I'm not worried about these errors as such. The missing files/directories are not, after all, supposed to exist in the final backup. But I'm a bit worried about the fact that rsync seems to think they should be there for it to rename.

I assume these are temporary files and that e.g. rsync copies a file to a temporary name first, not overwriting an existing, albeit outdated version, before renaming the file after a successful copy. I guess this is for safety - if the copy goes wrong, at least the outdated version is still intact. If that's right, though, I'm not sure why it would still think the renaming needed to be redone...

All the errors I've found seem to occur for /var/lib/pacman/local but that's likely just coincidence. I checked and this directory is identical to the one on the backup so the files definitely are being updated correctly. Just for some reason rsync doesn't seem to know that.

Have I misconfigured rsync somehow? I'm basically using:

/usr/bin/rsync -aAXv --delete-excluded --exclude-from=$list --log-file=$logdir/$logfile "$srcdir/" "$destdir"

where the variables are set up correctly from another script.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB