Tripp Lite B093-004-2E4U-V 4-Port Console Server with 4G LTE Cellular Gateway, Dual GbE NIC, 4Gb Flash and Dual SIM

Owner's Manual - Page 238

For B093-004-2E4U-V. Also, The document are for others Tripp Lite models: B093-00X-2E4U-X, B097-016/048, B098-016/048, B098-016-V

PDF File Manual, 285 pages, Read Online | Download pdf file

B093-004-2E4U-V photo
Loading ...
Loading ...
Loading ...
238
15. Advanced Configuration
First, check if the USB disk has a label:
# /etc/scripts/backup-usb check-magic
If this command returns “Magic volume not found”, run the following command:
# /etc/scripts/backup-usb set-magic
To save the configuration:
# /etc/scripts/backup-usb save config-20May
To check if the backup was saved correctly:
# /etc/scripts/backup-usb list
If this command does not display “* config-20May”, there was an error saving the configuration.
The set-default command takes an input file as an argument and renames it to “default.opg”. This default configuration
remains stored on the USB disk. The next time you want to load the default config, it will be sourced from the new default.opg
file. To set a config file as the default:
# /etc/scripts/backup-usb set-default config-20May
To load this default:
# /etc/scripts/backup-usb load-default
To load any other config file:
# /etc/scripts/backup-usb load {filename}
The /etc/scripts/backup-usb script can be executed directly with various COMMANDS or called from other custom scripts you
may create. However, it is recommended you do not customize the /etc/scripts/backup-usb script itself.
15.1.9 Backing Up the Configuration Off-Box
If you do not have a USB on your console server, you can back up the configuration to an off-box file. Before backing up, you
need to arrange a method to transfer the backup off-box. This could be via an NFS share, a Samba (Windows) share to USB
storage or copied off-box via the network. If backing up directly to off-box storage, make sure it is mounted.
/tmp is not a good location for the backup, except as a temporary location before transferring it off-box. The /tmp directory will
not survive a reboot. The /etc/config directory is not a good place either, as it will not survive a restore.
Backup and restore should be done by the root user to ensure correct file permissions are set. The config command is used to
create a backup tarball:
config -e <Output File>
The tarball will be saved to the indicated location. It will contain the contents of the /etc/config / directory in an uncompressed
and unencrypted form.
Example nfs storage:
# mount -t nfs 192.168.0.2:/backups /mnt # config -e /mnt/b098.config
# umount/mnt/
Example transfer off-box via scp:
# config -e /tmp/b098.config
# scp /tmp/b098.config [email protected]:/backups
The config command is also used to restore a backup:
config -i <Input File>
This will extract the contents of the previously created backup to /tmp, and then synchronize the /etc/config directory with the
copy in /tmp.
One problem that may arise is a lack of space in /tmp to extract files to. The following command will temporarily increase the
size of /tmp:
mount -t tmpfs -o remount,size=2048k tmpfs /var
Loading ...
Loading ...
Loading ...