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

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

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

Post by scoobydu » Mon Aug 11, 2003 8:59 pm

Would like to backup the system.

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

Any help would be appreciated

cheers

scooby
Last edited by scoobydu on Wed Apr 07, 2004 9:53 am, edited 1 time in total.

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Mon Aug 11, 2003 9:23 pm

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!

scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu » Mon Aug 11, 2003 10:05 pm

Sounds good, thanks! :)

User avatar
Scocou
Novice
Posts: 44
Joined: Tue Aug 12, 2003 12:22 am
Location: British Columbia, Canada

Post by Scocou » Sat Aug 16, 2003 12:50 am

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.

scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu » Wed Apr 07, 2004 9:54 am

edit: How's it done for a native f drive install?

TIA

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Wed Apr 07, 2004 4:31 pm

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)
If you keep an open mind, will your brain fall out?

scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu » Wed Apr 07, 2004 10:24 pm

So its a pretty manual process then.

Thanks anyway.

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Wed Apr 07, 2004 10:26 pm

you could write a script, one for backup and one for restore it would only be around 10-15 lines
If you keep an open mind, will your brain fall out?

scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu » Thu Apr 08, 2004 8:52 pm

You're assuming the box will boot though, and it may not.

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Thu Apr 08, 2004 9:05 pm

you boot off of the stardust CD keep the script on your C or E drive and run it from there
If you keep an open mind, will your brain fall out?

scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu » Tue Apr 13, 2004 10:26 am

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?

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Tue Apr 13, 2004 9:46 pm

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
If you keep an open mind, will your brain fall out?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest