Re: rsnapshot is Throwing an Intermittent Error.
On Thu, Jun 14, 2018 at 10:36:01AM -0500, Martin McCormick wrote:
> /bin/rm: cannot remove '/var/cache/rsnapshot/halfday.1/wb5agz/home/usr/lib/grub
> #Mount backup media first since this next is just a rotation.
> mount /rsnapshot1 >/dev/null 2>&1 ||exit 1
> mount /rsnapshot2 >/dev/null 2>&1 ||exit 1
> mhddfs /rsnapshot1,/rsnapshot2 /var/cache/rsnapshot -o mlimit=100M >/dev/null 2>&1
My immediate thought is to stop throwing away the output of these
commands, so that if one of them is failing or giving warnings, you can
actually see what's wrong.
At least get rid of the 2>&1 on all 3 lines, so you get the stderr output.
Or log the stdout and stderr to a file, if you absolutely can't stand
the thought that you might ever possibly get it mailed to you.