How to backup before a release upgrade from Ubuntu 18.04.5 LTS server?
Ralf Mardorf
kde.lists at yahoo.com
Sun Sep 26 16:23:50 UTC 2021
On Sun, 26 Sep 2021 15:46:48 +0200, Liam Proven wrote:
>On Sun, 26 Sept 2021 at 15:11, Bo Berglund wrote:
>> How to mount the external drive (see above)?
>
>Depends on the drive.
>
>Is it USB 2, USB 3, eSATA, what? You have not told us.
Hi,
I'm using scripts to do backups. The scripts mount devices by labels.
In my case the devices are either USB2, USB3 or SATA (not eSATA).
The shortened relevant parts of the script:
#!/bin/bash
mount_list()
{
cat<<EOF
moonstudio
u8.fantec
EOF
}
lmount()
{
case $1 in
-w) mkdir -p /media/$2
mount -wL$2 /media/$2 -o relatime 2>/dev/null;;
esac
}
#else
label_list="$(mount_list)"
#fi
for label in $label_list; do
lmount -w $label
done
exit
Regards,
Ralf
More information about the ubuntu-users
mailing list