rsnapshot fails when scheduled, but works when run manually
by molnart from LinuxQuestions.org on (#6H5QN)
I use rsnapshot to do daily backup of some stuff from one of my machines to a remote NFS server. This setup worked fine for years, however recently i have noted that the backups are not being created.
Looking at the journal, everytime the job is supposed to run, its full of stale file handle errors, such as this:
Code: /bin/rm: cannot remove '/net/192.168.50.8/export/Backups/rsnapshot/daily.6/dockerhost/docker/.config/0_base_stack/.env': Stale file handleHowever ANYTIME i try to run the job manually via Code:sudo rsnapshot -V daily it runs fine.
The remote host is always mounted, there seems to be no issue with the share (i think if there was, it would not show exact filenames in the journal errors).
my rsnapshot.conf looks like this:
Code:config_version 1.2
snapshot_root /net/192.168.50.8/export/Backups/rsnapshot
no_create_root 0 # target root will be created before rsnapshot is running
exclude 'Cache/'
exclude 'Metadata/'
exclude 'MediaCover/'
retain daily 7
retain weekly 4
retain monthly 12
verbose 2
loglevel 2
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
logfile /var/log/rsnapshot.log
rsync_long_args --delete --numeric-ids --delete-excluded
one_fs 0
# no extra destination dir
backup /home/molnart/ dockerhost
rsync_numtries 1
lockfile /var/run/rsnapshot.piddo you have any idea what is wrong here?
Looking at the journal, everytime the job is supposed to run, its full of stale file handle errors, such as this:
Code: /bin/rm: cannot remove '/net/192.168.50.8/export/Backups/rsnapshot/daily.6/dockerhost/docker/.config/0_base_stack/.env': Stale file handleHowever ANYTIME i try to run the job manually via Code:sudo rsnapshot -V daily it runs fine.
The remote host is always mounted, there seems to be no issue with the share (i think if there was, it would not show exact filenames in the journal errors).
my rsnapshot.conf looks like this:
Code:config_version 1.2
snapshot_root /net/192.168.50.8/export/Backups/rsnapshot
no_create_root 0 # target root will be created before rsnapshot is running
exclude 'Cache/'
exclude 'Metadata/'
exclude 'MediaCover/'
retain daily 7
retain weekly 4
retain monthly 12
verbose 2
loglevel 2
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
logfile /var/log/rsnapshot.log
rsync_long_args --delete --numeric-ids --delete-excluded
one_fs 0
# no extra destination dir
backup /home/molnart/ dockerhost
rsync_numtries 1
lockfile /var/run/rsnapshot.piddo you have any idea what is wrong here?