[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] What's in your backup?



Thanks Bob for the tip,

We use Sun StorEDGE for normal backups, the script was for
extra security etc.

Regards,
Peter Rombouts

----- Original Message ----- 
From: "Bob Noordam" <mac@xxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, February 05, 2004 9:07 PM
Subject: RE: [cobalt-users] What's in your backup?


>
> > Onderwerp: Re: [cobalt-users] What's in your backup?
> >
> > Peter Rombouts wrote:
> >
> > > It will probably backup too much, but it works.
> >
> > it's impossible to back-up too much !
> >
> > I backup EVERYTHING, using IBM's tivoli TSM software (for
> > which I have to mount /, /var and /home as NFS-mounts because
> > tivoli doen's support xfs filesystems)
> >
>
>
> I used a modified version of Peter's backup over the weekend to move one
box
> to another. The backup he described contained everything i needed included
> custom installed packages, there were only a few minor things i changed.
>
> - his script creates the backup file in /opt, which quickyl ran out with
> 12GB to transfer, so i created it in /home/users/admin with a --exclude in
> the tar
>
> - The resulting file (approx 12GB) could not be transfered throufg ftp
(2GB
> max), so i ran a split to slice it into 1Gb pieces.
>
> On the restore end;
>
> - first restore the GUI, then REBOOT, or you will run into quota issues
> during the restore for larger then default sites.
> - Then, recreated the large file (cat aa ab ac > archive.tar) and
extracted
> it.
>
> The only downside to the entire thing is that you must have a sizable free
> space on the system to create your tar, and then for the slices. (2/3 of
> your harddrive must be free.)
>
> With the modifications for large sites/files, his script looks like;
>
> #
> # Backup script for a Cobalt RAQ 550 (and probaly other models)  server
> #
> # H.P. Noordam, version 1.12, 30 jan 2004
> # http://www.dePoPo.net
> #
> # Original script by Peter Rombouts
> # Some idea's from neuhaus' raqbackup
> #
> # This script backups the GUI and most of the rest of your server to a
> directory
> # from which the backup file can easily be retrieved with ftp.
> (/home/users/admin/sitebackup)
> # If you only work from the gui, this backup should contain everything you
> will ever
> # need to restore the 550 to it's original state after a failure
> #
> # this script has been tested with backup files of a maximum of 12GB (most
> backup scripts
> # fail to ftp when files > 2GB are encoutered)
> # however, it is still a work in progress, and you WILL run into quota and
> symlink
> # issues with big restores with require manual handling.
> # what seems to work best is; restore the GUI, restore the TAR file until
it
> breaks off with
> # quota errrors, then reboot the machine, and re-run the untar command.
> # During the second run, the correct qutoa's should be in effect.
> #
> echo "!"
> echo "! Remember you must be root to make a full"
> echo "! backup."
> echo "! The backup craeted is uncompressed to save time on low end
hardware"
> echo "! and is split into segmenst after creation. (or you will run into"
> echo "! problems ftp-ing the files out (2GB file size limit)  As a result,
> you will"
> echo "! need two times the size of your data as free space."
> echo "!"
> echo backup starting
> #
> # make sure the backup target directory exists, and is empty
> #
> echo creating/checking backup target directory
> rm /home/users/admin/sitebackup -R
> mkdir /home/users/admin/sitebackup
> cd /home/users/admin/sitebackup
>
> #
> # backup gui
> #
>
> echo .
> echo saving cce backup file
> echo .
> /usr/local/sbin/cobalt_prebackup
> mv /var/cobalt/backups/cce.tar /home/users/admin/sitebackup
>
> echo .
> echo backup other data
> echo .
> tar -cvf /home/users/admin/sitebackup/backupraq.tar /var /etc /usr /root
> /.nsr /nsr /home --exclude=/home/users/admin/sitebackup
>
> echo .
> echo slicing 1Gb pieces
> echo .
> cd /home/users/admin/sitebackup
> split -b 1000m backupraq.tar
>
> echo .
> echo cleaning up no longer neede file
> echo .
> rm /home/users/admin/sitebackup/backupraq.tar
>
> echo .
> echo Done. Read the script for restore instructions.
> echo .
>
> #
> # to restore;
> #
> # get your files back into the /home/users/admin/sitebackup directory,
> #
> # cat xaa xab xac .... > backupraq.tar (to reassemble to big file)
> # mv /home/users/admin/sitebackup/cce.tar /var/cobalt/backups
> # /usr/local/sbin/cobalt_postbackup  (to restore the gui)
> #
> # reboot, re-login and
> # cd /
> # tar -xvf /home/users/admin/sitebackup/backupraq.tar   (to restore data)
> # rm /home/users/admin/sitebackup -R  (to clean up the restore files)
> #
> #
>
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>