View previous topic :: View next topic |
Author |
Message |
RoVeRken Tux's lil' helper
Joined: 22 May 2003 Posts: 93 Location: Belgium (Leuven)
|
Posted: Tue Dec 09, 2003 4:09 pm Post subject: |
|
|
thanks alot!!, this script is very usefull for n00bs like me :p _________________ Powered by Gentoo. |
|
Back to top |
|
|
unattachme n00b
Joined: 22 Nov 2003 Posts: 6 Location: Kansas City, MO - USA
|
Posted: Sat Aug 14, 2004 7:43 pm Post subject: Konserve |
|
|
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 |
|
|
tiny Tux's lil' helper
Joined: 02 Dec 2003 Posts: 102 Location: Slovenia
|
Posted: Mon Nov 15, 2004 6:39 pm Post subject: |
|
|
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 |
|
|
feardapenguin Guru
Joined: 23 Jul 2003 Posts: 414 Location: Texas
|
Posted: Mon Dec 20, 2004 6:40 am Post subject: |
|
|
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 |
|
|
lakicsv n00b
Joined: 19 Apr 2002 Posts: 51 Location: UK, Surrey
|
|
Back to top |
|
|
feardapenguin Guru
Joined: 23 Jul 2003 Posts: 414 Location: Texas
|
Posted: Mon Dec 20, 2004 8:42 pm Post subject: |
|
|
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 |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Thu Jan 06, 2005 5:06 pm Post subject: |
|
|
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 |
|
|
stealthy Tux's lil' helper
Joined: 08 Aug 2002 Posts: 118 Location: ONTARIO CANADA
|
Posted: Thu Jan 06, 2005 7:57 pm Post subject: I guess I should throw in what I've done |
|
|
Ever since I've been on gentoo. I have used one this to backup my system...and it has never failed me
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 |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Thu Jan 06, 2005 9:38 pm Post subject: |
|
|
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 |
|
|
feardapenguin Guru
Joined: 23 Jul 2003 Posts: 414 Location: Texas
|
Posted: Sat Jan 08, 2005 9:02 pm Post subject: |
|
|
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 |
|
|
MagnusBerg Guru
Joined: 07 Oct 2003 Posts: 370 Location: Burgsvik, Gotland, Sweden
|
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Sun Jan 09, 2005 4:30 pm Post subject: |
|
|
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 |
|
|
dwblas Guru
Joined: 14 Jul 2003 Posts: 525 Location: Southern California (No jokes please)
|
Posted: Sun Jun 18, 2006 9:17 pm Post subject: |
|
|
Script works fine with cpio-2.6.5-r5. Thanks for the effort. |
|
Back to top |
|
|
|