Page 1 of 1

Whats the best way to backup gentoox? ** Native Install **

Posted: Mon Aug 11, 2003 8:59 pm
by scoobydu
Would like to backup the system.

Is it as simple as copying the drive with gentoox on?

Any help would be appreciated

cheers

scooby

Posted: Mon Aug 11, 2003 9:23 pm
by ShALLaX
To backup your Gentoox installation, you just need to save a copy of the "rootfs", "initrd", "vmlinuz" and "linuxboot.cfg" files. If anything goes wrong with your installation, just delete these files, then reupload your saved copies!

Posted: Mon Aug 11, 2003 10:05 pm
by scoobydu
Sounds good, thanks! :)

Posted: Sat Aug 16, 2003 12:50 am
by Scocou
If you're concerned with storage space, it might be a good idea to rm the contents of /usr/portage/distfiles beforehand. If you plan on later compressing the rootfs you will get a tighter archive, as these files (mostly) have already been compressed (and are easily replaced).

Code: Select all

rm /usr/portage/distfiles/*
to delete the archives and

Code: Select all

emerge world -ef
to get them all back, but don't do that, it's hard on the mirrors! They will just be downloaded as needed.

Posted: Wed Apr 07, 2004 9:54 am
by scoobydu
edit: How's it done for a native f drive install?

TIA

Posted: Wed Apr 07, 2004 4:31 pm
by nobspangle
you need to create a tar of your filesystem you can't copy proc so you'll have to recreate that directory again if you restore from the backup.
Use
tar -jcvf /path/to/tar/file.tar.bz2 /boot /bin /etc (and so on for each folder in your root missing out /proc)

Posted: Wed Apr 07, 2004 10:24 pm
by scoobydu
So its a pretty manual process then.

Thanks anyway.

Posted: Wed Apr 07, 2004 10:26 pm
by nobspangle
you could write a script, one for backup and one for restore it would only be around 10-15 lines

Posted: Thu Apr 08, 2004 8:52 pm
by scoobydu
You're assuming the box will boot though, and it may not.

Posted: Thu Apr 08, 2004 9:05 pm
by nobspangle
you boot off of the stardust CD keep the script on your C or E drive and run it from there

Posted: Tue Apr 13, 2004 10:26 am
by scoobydu
nobspangle wrote:you boot off of the stardust CD
... and at what point do you exit the stardust boot process so that you have access to the mounted native f: drive linux file structures?

Posted: Tue Apr 13, 2004 9:46 pm
by nobspangle
you just ctrl+c out of the stardust install script then mount the partitions yourself, I think the mount points are already there you just need to mount the partition. You can then execute your script which mounts all the other partitions for you