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 »

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.
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post 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!
scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu »

Sounds good, thanks! :)
Scocou
Novice
Posts: 44
Joined: Tue Aug 12, 2003 12:22 am
Location: British Columbia, Canada

Post 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.
scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu »

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

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

Post 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)
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 »

So its a pretty manual process then.

Thanks anyway.
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

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 »

You're assuming the box will boot though, and it may not.
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

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 »

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?
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

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