Following an upgrade from Fedora 35 to 36 it appears that rsnapshot,
which I have configured to take a nightly backup (more for fat finger protection or sudden hard drive failure than for fire/theft/etc: for
the latter I make a weekly backup immediately before doing a software
update and keep the latter in a fire-safe.
Here's what the overnight cron backup job should do:
- mount a USB drive (always connected to my house server)
- do an rsnapshot backup run
- unmount the usb drive
However, since the F36 upgrade last week the overnight backup drive is
no longer being mounted and so the backup isn't happening. I'd been
'manually' mounting the backup drive (i.e. via a LABEL=xxxxx entry in
/ etc/fstab):
LABEL=USB_SNAPSHOT /media/snapshot ext4 rw,noauto,users,exec,noatime 0
0
as specified in the rsnapshot manual rather than having the drive
mount at boot time. And, as required by the rsnapshot manual at:
https://wiki.amahi.org/index.php/Rsnapshot#Mounting_an_External_USB_Dr
ive
it is the last non-blank line in /etc/fstab. It looks like this:
LABEL=USB_SNAPSHOT /media/snapshot ext4 rw,noauto,users,exec,noatime 0
0
The /media/snapshot directory exists. However, any attempt to mount
the USB drive always gets this response:
# mount -L USB_SNAPSHOT mount: /media/snapshot: can't find LABEL=USB_SNAPSHOT.
.... so I've obviously missed something important, but what?
--
Martin | martin at
Gregorie | gregorie dot org
--
Martin | martin at
Gregorie | gregorie dot org
Hello Martin!
Tuesday October 04 2022 17:55, Martin Gregorie wrote to All:
Stupid response - Check the case of the label on file matches command - exactly - JIC.
Vincent Coen <VBCoen@gmail.com> wrote:
Hello Martin!
Tuesday October 04 2022 17:55, Martin Gregorie wrote to All:
Stupid response - Check the case of the label on file matches command -
exactly - JIC.
Yes, and check it mounts as /media/$USER/USB_SNAPSHOT if you mount it
from the GUI?
(or wherever Fedora mounts it if not in /media/$USER)
# mount -L USB_SNAPSHOT mount: /media/snapshot: can't find LABEL=USB_SNAPSHOT.
Martin Gregorie wrote:
# mount -L USB_SNAPSHOT mount: /media/snapshot: can't find
LABEL=USB_SNAPSHOT.
do a quick "cat -v /etc/fstab" to make sure some weird character hasn't
got into the file while editing it?
On 04 Oct 2022 21:52:28 +0100 (BST), Theo wrote:
Vincent Coen <VBCoen@gmail.com> wrote:
Hello Martin!
Tuesday October 04 2022 17:55, Martin Gregorie wrote to All:
Stupid response - Check the case of the label on file matches command -
exactly - JIC.
Yes, and check it mounts as /media/$USER/USB_SNAPSHOT if you mount it
from the GUI?
(or wherever Fedora mounts it if not in /media/$USER)
I took the error to mean that rsnapshot can't find the LABEL line in /etc/ fstab, not that the directory name specified by that line doesn't match
the /media/snapshot directory.
However, I've since found what appears to be rsnapshot home: https://github.com/rsnapshot
which should, hopefully, help but there's a problem in that it claims fsnapshot is currently v1.1, which seems decidedly low for something
that's been around for at least a decade.
Not that thats all that
relevant, because the version I installed as part of the Fedora 36 upgrade doesn't have a version number: there's no --version command line option,
the manpage doesn't give a version number either. The command line
arguments seem to have changed too but its hard to know just what too, because '-?' isn't supported and '--help' merely returns 'rsnapshot'.
Will just have to dig harder tomorrow: at least there's a contact address, though thats at
http://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rather than at github. I have a feeling my best approach may be to raise a bug on the Fedora Bugzilla, see where answers come from and ash more questions there.
Martin Gregorie <martin@mydomain.invalid> wrote:
On 04 Oct 2022 21:52:28 +0100 (BST), Theo wrote:
Vincent Coen <VBCoen@gmail.com> wrote:I took the error to mean that rsnapshot can't find the LABEL line in
Hello Martin!
Tuesday October 04 2022 17:55, Martin Gregorie wrote to All:
Stupid response - Check the case of the label on file matches
command -
exactly - JIC.
Yes, and check it mounts as /media/$USER/USB_SNAPSHOT if you mount it
from the GUI?
(or wherever Fedora mounts it if not in /media/$USER)
/etc/
fstab, not that the directory name specified by that line doesn't match
the /media/snapshot directory.
Surely your failed attempt to do:
# mount -L USB_SNAPSHOT
suggests the drive can't be mounted, not reflecting any problem to do
with rsnapshot?
However, I've since found what appears to be rsnapshot home:
https://github.com/rsnapshot
which should, hopefully, help but there's a problem in that it claims
fsnapshot is currently v1.1, which seems decidedly low for something
that's been around for at least a decade.
Not really, version numbers are entirely at the whim of the developers.
PuTTY is on 0.77 for example, and that's been around about 25 years.
Not that thats all that relevant, because the version I installed as
part of the Fedora 36 upgrade doesn't have a version number: there's no
--version command line option, the manpage doesn't give a version
number either. The command line arguments seem to have changed too but
its hard to know just what too, because '-?' isn't supported and
'--help' merely returns 'rsnapshot'.
You could inspect the source code:
$ less `which rsnapshot`
It's just a perl script so you can compare it with the one from github.
(it is possible there is a different tool going by the same name)
The 'version' option was added at least 8 years ago according to 'git
blame'
of the github.
Will just have to dig harder tomorrow: at least there's a contact
address,
though thats at
http://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rather than at github. I have a feeling my best approach may be to
raise a bug on the Fedora Bugzilla, see where answers come from and ash
more questions there.
I would establish whether it's an rsnapshot problem or a general problem unrelated to rsnapshot first.
Theo
/etc/fstab's last non-blank line is:^
LABEL=USB_SNAPSHOT /media/snapshot ext4 rw,noauto,users,exec,noatime 0 0
Martin Gregorie <martin@mydomain.invalid> writes:
/etc/fstab's last non-blank line is:^
LABEL=USB_SNAPSHOT /media/snapshot ext4 rw,noauto,users,exec,noatime 0
0
Shouldn't that be "user"?
$ man 8 mount
user Allow an ordinary user to mount the filesystem.
On 04 Oct 2022 21:52:28 +0100 (BST), Theo wrote:
Vincent Coen <VBCoen@gmail.com> wrote:I took the error to mean that rsnapshot can't find the LABEL line in /etc/ fstab, not that the directory name specified by that line doesn't match
Hello Martin!
Tuesday October 04 2022 17:55, Martin Gregorie wrote to All:
Stupid response - Check the case of the label on file matches command -
exactly - JIC.
Yes, and check it mounts as /media/$USER/USB_SNAPSHOT if you mount it
from the GUI?
(or wherever Fedora mounts it if not in /media/$USER)
the /media/snapshot directory.
However, I've since found what appears to be rsnapshot home: https://github.com/rsnapshot
which should, hopefully, help but there's a problem in that it claims fsnapshot is currently v1.1, which seems decidedly low for something
that's been around for at least a decade.
Not that thats all that
relevant, because the version I installed as part of the Fedora 36 upgrade doesn't have a version number: there's no --version command line option,
the manpage doesn't give a version number either. The command line
arguments seem to have changed too but its hard to know just what too, because '-?' isn't supported and '--help' merely returns 'rsnapshot'.
Will just have to dig harder tomorrow: at least there's a contact address, though thats at
http://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rather than at github. I have a feeling my best approach may be to raise a bug on the Fedora Bugzilla, see where answers come from and ash more questions there.
Version numbers mean little as there is no standard as to how they
progress, except increasing.
LABEL=USB_SNAPSHOT /media/snapshot ext4 rw,noauto,users,exec,noatime 0 0
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 70:50:19 |
Calls: | 6,656 |
Calls today: | 2 |
Files: | 12,200 |
Messages: | 5,332,157 |
Posted today: | 1 |