What's new

Trying to figure out why rsync is failing on files

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

zerophase

Occasional Visitor
I'm backing up my system to a samba share mounted as root. Everytime I run rsync there's always a few files that rsync throws errors on. It doesn't always throw errors on the same files everytime. I'm guessing it might not be trying to back those files up each time, since nothing has changed on them.

These are some of the errors thrown.
[E] Error: rsync: stat "/mnt/SystemBackUp/backintime/Odin/root/1/new_snapshot/backup/usr/share/terminfo/A/Apple_Terminal" failed: No such file or directory (2)

[E] Error: rsync: stat "/mnt/SystemBackUp/backintime/Odin/root/1/new_snapshot/backup/usr/share/terminfo/Q/Q310-vip-H" failed: No such file or directory (2)

[E] Error: rsync: stat "/mnt/SystemBackUp/backintime/Odin/root/1/new_snapshot/backup/usr/share/terminfo/Q/Q310-vip-Hw" failed: No such file or directory (2)

[E] Error: rsync: stat "/mnt/SystemBackUp/backintime/Odin/root/1/new_snapshot/backup/usr/share/terminfo/Q/Q310-vip-w" failed: No such file or directory (2)

I'm running rsync as root, so I don't believe it's a permissions issue. I have a feeling that the drives are mounted as NFS, and not CIFS, but I can't find where the mounting options are defined for samba shares. I check /etc/fstab on the router and it was empty. Anyone know how to change how the router mounts drives or other possible fixes?
 
Is it possible that rsync is trying to copy a file that is actively being written to at the time of the event?

(rsync can copy open flles, btw, but since rsync works on the file level, it can't copy a file that is actively being written - good example would databases and Virtual Machine vDisks)..
 
Maybe, for some of the files. Most of them are executable scripts. The other files I'm getting errors on when mkstemp are
/usr/share/perl5/core_perl/Pod/Perldoc/.BaseTo.pm.bfipw7

All of them are related to perl and terminfo for the most part.
 
Last edited:
Alright, I spoke to the developer of backintime, and he suggested I use ssh rather than samba for mounting the disk. The only issue is with his code I need to use the version of busybox available in entware and not the default version the router uses. When I ssh in from putty, I get entware's busybox, but if I go in through a script running ssh I get the routers busybox. Anyone know how to switch which version of busybox gets called by changing environment variables?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top