Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Clone" your Gentoo root partition
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
RoVeRken
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 93
Location: Belgium (Leuven)

PostPosted: Tue Dec 09, 2003 4:09 pm    Post subject: Reply with quote

thanks alot!!, this script is very usefull for n00bs like me :p
_________________
Powered by Gentoo.
Back to top
View user's profile Send private message
unattachme
n00b
n00b


Joined: 22 Nov 2003
Posts: 6
Location: Kansas City, MO - USA

PostPosted: Sat Aug 14, 2004 7:43 pm    Post subject: Konserve Reply with quote

OK, I know many of the l33t wouldn't consider this, but the 'lil utility 'Konserve' (for KDesktop) is really a wonderful program, ESPECIALLY for the 'grandma types'.

Just my 2 cents, though the above solutions seem great too.

I've always just booted the gen2 live and done a
mkdir /gen2
mkdir /bak
mount /dev/ROOT /gen2
mount /dev/BAK /bak
tar cvzf /bak/backupname.tgz /gen2

Perhaps it's more work than is necessary, and there's probably more 'efficient' ways to do it, but it's always 'just worked' so I keep using it.
_________________
Universally,
unattachme

"Try? There is no 'try'! There is do, and there is do not!" ---Yoda
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Mon Nov 15, 2004 6:39 pm    Post subject: Reply with quote

Thnx for the script ... I did a 'cp -axR' and 'find -xdev|cpio' things but that always failed when I rebooted into new partition since there wasnt any /dev/files .
BTW: How does your script manage this /dev/devices problem? With -bind option on mounting BIND_DIR?
Back to top
View user's profile Send private message
feardapenguin
Guru
Guru


Joined: 23 Jul 2003
Posts: 414
Location: Texas

PostPosted: Mon Dec 20, 2004 6:40 am    Post subject: Reply with quote

Hmmm... this script no longer seems to work with the new cpio-2.5.90. I get "too many arguments".

Anyone know what needs to be tweaked?
Back to top
View user's profile Send private message
lakicsv
n00b
n00b


Joined: 19 Apr 2002
Posts: 51
Location: UK, Surrey

PostPosted: Mon Dec 20, 2004 2:25 pm    Post subject: Reply with quote

This seems to be a bug in cpio... see:

http://lists.gnu.org/archive/html/bug-cpio/2004-11/msg00003.html


Viktor

feardapenguin wrote:
Hmmm... this script no longer seems to work with the new cpio-2.5.90. I get "too many arguments".

Anyone know what needs to be tweaked?
Back to top
View user's profile Send private message
feardapenguin
Guru
Guru


Joined: 23 Jul 2003
Posts: 414
Location: Texas

PostPosted: Mon Dec 20, 2004 8:42 pm    Post subject: Reply with quote

Thanks, I'll keep an eye on that and in the meantime stay with 2.5.

This script has been a very handy-dandy kitchen tool. I've used it for both backup and to create test systems (easy since my entire system resides on a single partition). In fact it saved my can during a recent glibc fiasco. After a total crash-and-burn I was able to restore the original system from a cloned version (in about an hour) saving me from having to rebuild from scratch (which would have taken about three days).

Kudos!
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1042
Location: Gentoo Forums

PostPosted: Thu Jan 06, 2005 5:06 pm    Post subject: Reply with quote

another way to backup your system is pointed out here: klick

(same thread as my signature points to at the moment)
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
stealthy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 112
Location: ONTARIO CANADA

PostPosted: Thu Jan 06, 2005 7:57 pm    Post subject: I guess I should throw in what I've done Reply with quote

Ever since I've been on gentoo. I have used one this to backup my system...and it has never failed me

Code:
cp -avix / /backup


where /backup is the another partition/drive mounted

only drawback doing it this way is that each filesystem has to be done individually.
Therefore for eg.
if I had:
sda1 /boot
sda3 /
sda5 /usr
sda6 /var
sda7 /tmp
sda8 /home

sdb1 /backup/boot
sdb3 /backup/
sdb5 /usr
sdb6 /var
sdb7 /tmp
sda8 /home
I would do
cp -avix / /backup
cp -avix /boot /backup
cp -avix /usr /backup
cp -avix /tmp /backup
cp -avix /var /backup
cp -avix /home /backup

Now having all the in a file and then running a cron job has never failed me
I have clone numerous systems like that without a hitch
Alhough for the first time i clone the drive, I also just run

grub

and the install mbr on on backup drive by
root (hd1,0)
setup (hd1)

Never failed for me.

Reasons why others should try other methods:
1. Although this tried method, its also slow and inefficent, cause it literally copies every file, even if the destination one already is latest
2. It doesn't work across the filesytems
3. its not a one-liner

Why I still use it.
1. For Past 4 years it still hasn't failed me, and I've had to use backups made by it countless times.
2. It works for me so why bother with anything else.
3. I am too lazy
_________________
All your Gentoo are belong to us.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1042
Location: Gentoo Forums

PostPosted: Thu Jan 06, 2005 9:38 pm    Post subject: Reply with quote

i only use tar and bzip2 to make the backup. my script does some useful things too, like giving the backup a timestamp, like compressing it and most usefully excluding unnecessary directories which make an archive really big. my system at the moment seems to be 16GB big, but after backing it up its merely 1GB small. there are a lot of unnecessary folders to backup ... this method does not only save space but a lot of time too
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
feardapenguin
Guru
Guru


Joined: 23 Jul 2003
Posts: 414
Location: Texas

PostPosted: Sat Jan 08, 2005 9:02 pm    Post subject: Reply with quote

OK, cpio-2.6 is out and it appears to have fixed the -p bug but it is not behaving the same as 2.5 (evidently).

I upgraded to cpio-2.6 a week or two ago and just finished cloning my system this morning using this script. The newly cloned system booted but did not load kernel parameters or execute any of the /etc/init.d run-level scripts. Immediately after loading modules it just entered run-level 3 and gave me a login prompt. An 'rc-update show' was totally empty.

Just as a test I reverted cpio back to 2.5 and reran the same clone process. It worked flawlessly.

I should have kept the 'flawed' system around so I could browse through it for differences (i.e. broken symlinks, dev files, etc) but I wasn't sure it was related to cpio until I tried the script again with the old version.
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Stockholm, Sweden

PostPosted: Sun Jan 09, 2005 2:41 pm    Post subject: Reply with quote

"My" method to backup is maybe to simle for you. ;-) Just
# emerge partimage
and then run it in your terminal.

Partimage-0.6.4 Partimage is a Ghost/DriveImage clone for Linux. It allows you to save/restore any partition of your hard disk into an image file. If you have a problem with your partition (virus, hard disk crash, error), you can restore it without having to reinstall your OS.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1042
Location: Gentoo Forums

PostPosted: Sun Jan 09, 2005 4:30 pm    Post subject: Reply with quote

i certainly will have a look at it. thanks for the hint
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
dwblas
Guru
Guru


Joined: 14 Jul 2003
Posts: 525
Location: Southern California (No jokes please)

PostPosted: Sun Jun 18, 2006 9:17 pm    Post subject: Reply with quote

Script works fine with cpio-2.6.5-r5. Thanks for the effort.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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