ColinTaylor
Part of the Furniture
That sounds reasonable for amtm's fd option. The user could enter their preferred label or hit enter for a default label (e.g. "amtm"). Of course that doesn't necessarily help this backup script as the user may not have used amtm to format their disk, or used an older version that didn't enforce a label. So this script would still have to allow for that.I have thought about this label issue for a while. There are numerous times a user doesn’t label a drive - and it can cause many issues later on.
I know this might sound draconian, but @thelonelycoder and @ColinTaylor, should we force the user to enter a label during amtm’s format operation? If someone is technical enough to go into amtm and format a drive, I would think they would not mind entering a label for the drive.
Personally, I would not make it an ”option” in the amtm fd function.
Just my $0.02.
Once you go down this rabbit hole how far do you go. The user might have multiple partitions and multiple USB disks and give (or default) all the filesystems the same label. So you could end up with 8 filesystems all labelled "amtm", whereas without labels they'd be called sda1, sda2, sda3, sda4, sdb1, sdb2, sdb3 and sdb4 - in a random order.
This is probably a discussion best had in an amtm thread.