On Mon, 18 Nov 2002, Christopher Harewood wrote:

> I finally have my Bering 1.0 stable box running just the way I like it, 
> booting from the hard drive.  Now... what's the easiest way to back it 
> up?  I have sftp installed, but it doesn't seem to allow multiple file 
> downloads, and I'd rather not get one... file... at a time.  

a) consider using scp instead of sftp.
(http://www.linuxgazette.com/issue64/dellomodarme.html)

b) The fact that you are concerned about the number of files suggests to
me that perhaps you need to make a more appropriate choice of which files
you back up.

Fundamentally, I think it makes little sense to back up the files from
your ramdisk(s) directly.  Backup to your hard disk with lrpkg so the
system is always self-restarting, and then backup the .lrp and other files
to your backup space elsewhere through the network.

The most straightforward way to do this from a *nix box is:

   mkdir backupdir
   ssh -l root yourrouter mount -t msdos /dev/hda1 /mnt
   scp root@yourrouter:/mnt/*.lrp backupdir/
   scp root@yourrouter:/mnt/syslinux.cfg backupdir/
   [... etc ...]
   ssh -l root yourrouter umount /mnt

This has the advantage that you can back up only those files you have
changed for an incremental backup.

If you have a small boot partition, the easiest way to avoid forgetting
something is to copy the whole thing:

   scp root@yourrouter:/dev/hda1 backup.img

This has the advantage that you will get everything but your partition
table, so restoring should be relatively easy if you don't have to replace
the hard disk (boot with an ssh-enabled floppy, and then scp the image
back to the partition).  If the hard disk has to be replaced, then you
have to duplicate the partition table manually first... at least so the
first partition is the same as the one from your original hard disk.
(Note that hda1 should NOT be mounted when you do this.)

Note that it is possible to mount an image file on a Linux box using the
loopback device rather than returning it to a partition just to
look inside it... read "man mount" for more information.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to