Tripp Lite B092-016 Owner's Manual Page 181

  • Download
  • Add to my manuals
  • Print
  • Page
    / 242
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 180
181
/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 cont
ain 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/
xxxxx
.config # umount/mnt/
Example transfer off
-
box via scp:
# config
-
e /tmp/
xxxxx
.c
onfig
# scp /tmp/
xxxxx
.config 192.168.0.2:/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 synchroniz
e
the
/etc/config
directory wi
th the copy in
/tmp
.
One
possible
problem that can
occur
here is that there is not
enough room 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
If restoring
to either a new unit or one that has been factory defaulted, it is important to make
sure that the process generating SSH keys is either stopped or completed before restoring
configuration
.
If this is not done, then a mix of old and new keys may be put in
place.
As SSH uses these keys to avoid man
-
in
-
the
-
middle attacks, logging in may be disrupted.
14.
9
General Linux
Command U
sage
Page view 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 241 242

Comments to this Manuals

No comments