Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I create a binary copy of a working Gentoo system?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
maguro
n00b
n00b


Joined: 26 Feb 2005
Posts: 41
Location: Delaware, USA

PostPosted: Thu Feb 02, 2006 3:52 pm    Post subject: How do I create a binary copy of a working Gentoo system? Reply with quote

I have a working Gentoo syetem that does everything I want it to do. I need to clone this system a number of times. The clones will be used as appliances, and do not need to be updated. The hard drives on the clones are not large, and I need all the space I can get. I want to remove everything from the cloned drives that is not absolutely necessary (/usr/src, /usr/portage, etc.).

What can I safetly remove, and what is the best way to do it?
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Thu Feb 02, 2006 4:24 pm    Post subject: Reply with quote

Maybe you would like to make a stage4 file of your system which you can use to re-install your system as-is later or on other computers. Read all about it here:

https://forums.gentoo.org/viewtopic-p-2223380.html#2223380

Hope this helps. :)
Back to top
View user's profile Send private message
brycenut
n00b
n00b


Joined: 20 Aug 2003
Posts: 28

PostPosted: Thu Feb 02, 2006 4:33 pm    Post subject: Reply with quote

You might want to try g4u http://www.feyrer.de/g4u/. I don't know though if it supports excluding directories or not however. If the drives are big enough for the initial copy, it might be simplest to clone the drives, and then blow away the unneeded stuff on the target drives

Another simple option is simply to tar/gzip up those system with onlythe directories that you will need need, excluding the ones you don't need using the -X flag, and then untar it to the other machine. I think you'd need to manually install grub/lilo at that point, but I'm not certain.

As for which directories to get rid of, the two you list are probably safe. You might also want to delete some of /usr/share/doc.
Back to top
View user's profile Send private message
Arniepoo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 76
Location: UK

PostPosted: Thu Feb 02, 2006 4:49 pm    Post subject: Reply with quote

Hi,

I have used the stage4 backup mechanism the previous poster mentioned to do a full backup and restore to a new disk. It was flawless, followed the instructions, rebooted and my system came up exactly as before. The wiki link for it is:

http://blinkeye.ch/mediawiki/index.php/GNU/Linux_System_Backup_Script_%28stage4%29

Arnie
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Feb 02, 2006 4:51 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Moved in favour of https://forums.gentoo.org/viewtopic-t-312817.html
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum