Meteobridge behaves as it's supposed to
- but you'll need to understand what means what
On the System --> Administration page you have different options
1. version control - determines if you want to download the latest update at the next reboot or not (or even downgrade to an earlier version)
2. database media - determines where your database is located - by preference on the internal SLC storage, but you can also choose an external USB device plugged to the front or rear USB port. however then you may risk the device (especially USB sticks/thumb drives) to get corrupted by the frequent I/Os (unless it is a SLC type of USB stick or a USB-HDD or USB-SSD). When you change the location, MB starts the database from scratch. If you have made a backup before, you can restore that to whereever your MB database is located (see next point)
3. Restore database select media for restore - MB looks for a so-called "special device" (Linux terminology) at one of the USB ports. From there you can choose the backup to restore
4. Backup you have two options - use the button "backup now" or plan a regular database backup in the Service --> events page
if you press "backup now", MB start the script backup.sh located in the \\METEOBRIDGE\data\scripts folder - this is also the script to select when creating a regular backup event (task)
the script looks for a device connected to one of the USB ports formatted in FAT32. If it finds one, it writes a copy of the database with the name dbase-yyyymmddhhmm to the device (e.g. dbase-202208151800 for 18:00 today)
Suggestion:
- you choose "internal storage" for your database (database media)
- you plug in a FAT32 formatted USB stick into the front USB port
- you press "backup now" from the System --> Administration page
to see your backup, you have two possibilities:
1. unplug the USB stick and insert it to your PC - you should see the backup file(s)
2. (if you are familiar with linux and know how to use a SSH connection)
connect via SSH (e.g. using the PuTTY program) to your MB Pro
(on your computer start PuTTY, enter the IP address of your MB Pro, select port 22 and connect - username and password are the same which you use in your browser)
with the USB stick (device) plugged in, you have to figure out under which name it is known to MB; usually sda1 or sdb1
to verify enter: ("#" is the command prompt for the root user as which you are logged in to MB)
#ls /dev/sd* -lthen you have to mount the USB stick into the file system which is visible to you from your computer (now assuming your USB device is sda1)
we first have to create a mount point in the file system (a directory/folder)
#mkdir /tmp/mnt/data/USBnow you can see the folder/directory USB as \\METEOBRIDGE\data\USB on your computer (may need to refresh your Windows File Explorer if you use Windows on your PC)
now make the content of your USB device visible in the \\METEOBRIDGE\data\USB folder = mounting the device into the file system
#mount /dev/sda1 /tmp/mnt/data/USBWhen you refresh your Windows Explorer, you can now see the content of the USB device in the \\METEOBRIDGE\data\USB folder.
You can check the successful mounting by entering
#
df -hthis command shows all mounted file systems - and should now also show /dev/sda1, your USB device
Beware: the mount will be undone by the backup script whenever it runs - your backup files will seem to disappear
(they only disappear from your view, not from the USB device - you want to see them again - redo the mounting)
by the way - it makes sense to run a backup on your MB at least once a day ! (of course a FAT32 formatted USB device needs to be plugged in
)
If the USB device is full, MB will overwrite the oldest backup on the device