Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Easily make a full system backup (stage4)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6 ... 16, 17, 18  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
bigfunkymo
Apprentice
Apprentice


Joined: 23 Jan 2004
Posts: 237

PostPosted: Wed Apr 27, 2005 12:57 am    Post subject: Reply with quote

you can delete the recursive boot symlink if you install the bootloader with the right parameters. Here is how:

https://forums.gentoo.org/viewtopic-p-2353791.html#2353791
_________________
[No package... Grabbing a set.]
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Wed Apr 27, 2005 4:19 am    Post subject: Reply with quote

or you just READ my thread, section "6. Warnings". 8O
_________________
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
bigfunkymo
Apprentice
Apprentice


Joined: 23 Jan 2004
Posts: 237

PostPosted: Wed Apr 27, 2005 1:51 pm    Post subject: Reply with quote

actually... I didn't read your whole thread :P

so

I still feel smart! 8O
_________________
[No package... Grabbing a set.]
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Wed Apr 27, 2005 5:32 pm    Post subject: Reply with quote

new version (v2.0.0) is out. it's faster now and no more additional (temporary) space is needed. the compression is done in-place. please be careful while customising - the script is using "find" now and hence has gotten more sensitive.

i tested it several times on three different machines. i didn't find any mistakes. please report any issues.
_________________
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
BlinkEye
Veteran
Veteran


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

PostPosted: Thu Apr 28, 2005 1:09 pm    Post subject: Reply with quote

minor fix (bzip2 options created a tar.gz stage4). new version: v.2.0.1
_________________
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
javock
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jan 2004
Posts: 106
Location: Babeland... yeah! I wish!

PostPosted: Thu Apr 28, 2005 9:18 pm    Post subject: Reply with quote

Nice, that's what you get when you read the man pages... simple and useful.
Gonna try it later.
_________________
The heart has reasons that the reason will never understand.

-- La Renga. El final es donde partí
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Sat Apr 30, 2005 4:13 am    Post subject: Reply with quote

So wait, do I need to do anything special if I run pure udev or do the /dev/null and /dev/console backups take care of that?
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Sat Apr 30, 2005 5:37 am    Post subject: Reply with quote

Code:

hardass bin # stage4
/bin/stage4: line 40: slashes.: command not found
/bin/stage4: line 55: be: command not found
/bin/stage4: line 62: folders,: command not found

/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found
/bin/stage4: line 98: [: missing `]'
/bin/stage4: line 99: -a: command not found


What? :(
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Sat Apr 30, 2005 7:59 am    Post subject: Reply with quote

no, for udev my script should take care of. it's just not that easy at the moment (depending on your hardware configuration) to restore a udev system backup without devfs. if you follow the instructions there shouldn't be any problem.

i don't understand your problem. could you elaborate? what are you doing in /bin/stage4? have you put your backup in there? or is it just the script? if yes there happened probably some line breaking issues while copying/saving the script.
_________________
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
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Sat Apr 30, 2005 3:42 pm    Post subject: Reply with quote

BlinkEye wrote:
no, for udev my script should take care of. it's just not that easy at the moment (depending on your hardware configuration) to restore a udev system backup without devfs. if you follow the instructions there shouldn't be any problem.

i don't understand your problem. could you elaborate? what are you doing in /bin/stage4? have you put your backup in there? or is it just the script? if yes there happened probably some line breaking issues while copying/saving the script.


Yeah that was right and I figured it out right away, just forgot to post back in here, sorry.
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
Alighieri
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 88

PostPosted: Sun May 01, 2005 8:39 pm    Post subject: Suggestion Reply with quote

First off, thanks for the terrific tool! I've been using it to clone desktop machines around the lab. I get one setup the way I want and then make a system backup and copy it to another machine. A few /etc tweaks and I'm done. Home dirs are automounted off a server, so its all pretty automatic.

Here's the suggestion: I'm saving system images to an nfs mounted directory on the server. It would be hugely more efficient to use the '--gzip|--bzip2' tar flags rather than tarring uncompressed first and then zipping. It would reduce the data written to the mounted directory by 2/3's. Change the extension to '.tgz|.tbz'. I can hack my copy, but thought I'd pass that along.

I see now that it has already been done!...

Just tried the latest version. Works beautifully!

I've had no issues with udev. Not sure what that is about.
Back to top
View user's profile Send private message
Alpo Nestori
n00b
n00b


Joined: 02 May 2004
Posts: 42

PostPosted: Mon May 02, 2005 8:30 am    Post subject: Reply with quote

More positive feedback coming, i just recovered with said script (v.2.0.1) and everything worked fine. Not a single error what so ever. Fluxbox (or xorg) lost my Alt-gr button for a while but it made a comeback with a fresh 'emerge -e world' with faster make.conf settings. Prelink is coming up. Windows is finally gone for good off my laptop.

Excellent work with the script!
Back to top
View user's profile Send private message
bingobob
Apprentice
Apprentice


Joined: 05 Apr 2004
Posts: 296
Location: Hertfordshire, UK

PostPosted: Mon May 02, 2005 12:31 pm    Post subject: Reply with quote

bit wierd this....I love the script, very good indeed. I made a ful system backup and now I`m trying to recover a single file from the bz2 tarball.

I cant achieve this....what am i doing wrong...maybe i just have to wait a long time?

I even used bzunzipped it first but didnt help....I want to just pick and choose some files from this big tarball 2.7 gig.?

root@ttyp1[gentoo]# tar xvf franz-stage4-17.04.2005-custom.tar /etc/make.conf
/etc/make.conf
tar: Removing leading `/' from member names
Back to top
View user's profile Send private message
slydini
Tux's lil' helper
Tux's lil' helper


Joined: 30 Oct 2002
Posts: 129
Location: Virginia Beach, VA

PostPosted: Mon May 02, 2005 4:43 pm    Post subject: Reply with quote

Judging from your output it looks like it worked just fine. Once tar extracts the file you needed just hit ctrl-c to stop it from scanning the rest of the tarball.
_________________
_______________________________________
Oh how I love Linux, especially on gentoo.
Back to top
View user's profile Send private message
oneeyedelf1
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 124

PostPosted: Mon May 02, 2005 5:56 pm    Post subject: heres what I did Reply with quote

bingobob wrote:
bit wierd this....I love the script, very good indeed. I made a ful system backup and now I`m trying to recover a single file from the bz2 tarball.

I cant achieve this....what am i doing wrong...maybe i just have to wait a long time?

I even used bzunzipped it first but didnt help....I want to just pick and choose some files from this big tarball 2.7 gig.?

root@ttyp1[gentoo]# tar xvf franz-stage4-17.04.2005-custom.tar /etc/make.conf
/etc/make.conf
tar: Removing leading `/' from member names


I used the stage4 technique and hosed my kernel config, fetched it out of the previous dates via
Code:
tar xzvpf stage4.tar usr/linux/.config

note, I was using gzip compression (much faster, a little bit fatter), I think the script uses bz2, which means chnage the z in xzvpf to j, and note you omit the starting / from the file name
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Mon May 02, 2005 6:17 pm    Post subject: Re: heres what I did Reply with quote

oneeyedelf1 wrote:
I used the stage4 technique and hosed my kernel config, fetched it out of the previous dates via
Code:
tar xzvpf stage4.tar /usr/linux/.config

you meant
Code:
tar xzvpf stage4.tar.gz /usr/linux/.config

or
Code:
tar xjvpf stage4.tar.bzip2 /usr/linux/.config

or
Code:
tar xzvpf stage4.tgz /usr/linux/.config

either way, slydini is right: according to bingobob's output he did everything right and his make.conf has been extracted. it may take a long time - espacially if you use bzip2. but even for the tar - it's like find, it searches the hole tar until it is finished. if you're lucky and your /etc is at the very beginning of the tar you get /etc files in no time at all. but /etc files are probably not the first files which were written on your harddisk. so, after you see a line with the file/folder you want to extract hit control+c to break the extracting or else it will continue until the hole tarball has been searched through.
oneeyedelf1 wrote:
note, I was using gzip compression (much faster, a little bit fatter), I think the script uses bz2, which means chnage the z in xzvpf to j, and note you omit the starting / from the file name

you think wrongly. the script makes a bzip2 or gzip depending on your choice. and the removing of the starting '/' is wrong. it MUST be there, that's why he gets this message
Code:
tar: Removing leading `/' from member names
. if he searched like
Code:
tar xvf franz-stage4-17.04.2005-custom.tar etc/make.conf
he would have found nothing.

i bet all he did was not see his /etc/make.conf as it is not extracted as make.conf but as etc/make.conf. confused me several times myself. look out for the a etc folder where you executed the command!
_________________
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
bingobob
Apprentice
Apprentice


Joined: 05 Apr 2004
Posts: 296
Location: Hertfordshire, UK

PostPosted: Tue May 03, 2005 11:28 am    Post subject: Reply with quote

blink eye.... bang on the money...it had worked, for some reason (it was late and i had had a couple of beers), I was expecting to see it in my . directory, as you said though it was extracted to /etc/make.conf, I just didnt see it...I've now extracted my old .config successfully and rebuilt a kernel with it...so all is well and i now have the power to pick and choose from this mighty tar ball.

Still very impressed with this script, makes doing a live system backup v easy.

bb.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Tue May 03, 2005 4:09 pm    Post subject: Reply with quote

i'm glad it worked. just one correction (for others). the make.conf was in your . dir - i.e. in your current directory, but not as ./make.conf but as ./etc/make.conf (mind the dot at the beginning). so if your in /mnt/backups/stage4 and extract /etc/make.conf from a stage4.tar.gzip your extracted make.conf will be in /mnt/backups/stage4/etc/make.conf.
_________________
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
mr.ed
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2004
Posts: 75

PostPosted: Tue May 03, 2005 6:25 pm    Post subject: Reply with quote

Hey blinkeye!

Grats on a wonderfull script! Was playing around with previous versions, but this one really needs no updating IMO! It does it's job and more... I configged it to backup my WHOLE system to a seperate partition which gets unmounted when the backup is finished.... Even converted it to a cron-job to run once a week! As for the udev part: i don't get what the probs are, i recently b0rked my system really bad (accidentally unmerged glibc lol 8O ) and i used the backup to restore my system and it worked!!!
At least now i can b0rk my system as much as i want (rofl) without having to worry if i have to re-install or not!! :twisted:
Thnx a lot for your hard work! :D
_________________
(Ex-Pornstar)
Back to top
View user's profile Send private message
dickeymeatballz
n00b
n00b


Joined: 15 Mar 2005
Posts: 2

PostPosted: Thu May 05, 2005 1:50 am    Post subject: ?'s Reply with quote

just tried to run this script and it told me permission denied, as root and as user. Am I overlooking something extremely obvious, or is my system just bugged out? Also, was that Ron Jeremy posting on this thread just now!?
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Thu May 05, 2005 1:53 am    Post subject: Re: ?'s Reply with quote

dickeymeatballz wrote:
just tried to run this script and it told me permission denied, as root and as user. Am I overlooking something extremely obvious, or is my system just bugged out? Also, was that Ron Jeremy posting on this thread just now!?


chmod +x scriptname
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
dickeymeatballz
n00b
n00b


Joined: 15 Mar 2005
Posts: 2

PostPosted: Thu May 05, 2005 2:06 pm    Post subject: thanx Reply with quote

Wow, i didn't expect anybody to reply that quick! Dr. Woland, your prescription worked like a charm, I thank you, sir. If I had known the forums replied so quickly I would not have spent all night trying to teach my computer to talk to itself with all those network backup solutions(or spent that month figuring out how to compile my gentoo kernel -they said i was crazy but it was worth it it LIVES HA HA HA HA HA!) ...sorry about that tangent, jut get a little carried away sometimes, heh heh. Thanx also to blinkeye for the script and the whole gentoo development squad for providing me with such a fantastic piece of software to tweak out on. -luv ya!
Back to top
View user's profile Send private message
Master One
l33t
l33t


Joined: 25 Aug 2003
Posts: 754
Location: Austria

PostPosted: Sat May 07, 2005 10:27 pm    Post subject: Reply with quote

BlinkEye, please add the info to your WARNING, that grub has to be reinstalled into the MBR, after the "boot -> ." link has been removed! I had to find out the hard way today, when I rebooted my two servers, and was confronted with a "Grub Error 15" on both machines.
_________________
Las torturas mentales de la CIA
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


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

PostPosted: Sun May 08, 2005 8:26 am    Post subject: Reply with quote

thanks for that hint. now i know why i my grub.conf wasn't read on one box and i had to manually enter the boot/kernel options on every reboot although my settings were right (i almost lost my mind until the idea of re-installing grub struck me). i didn't get the error 15 though, just the grub prompt.
_________________
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
ewildgoose
n00b
n00b


Joined: 02 Mar 2003
Posts: 66

PostPosted: Sun May 08, 2005 8:33 am    Post subject: Reply with quote

I think that the error is that your kernel line params probably had an extra /boot in them. The symlink makes that not a problem, but then we deleted it...

Remember that if /boot is on a seperate partition, then the real path on *that* partition doesn't need the /boot bit... So your command line to the kernel either needs a /boot or not depending on whether you use a seperate partition. The symlink is a clever way around that.

I'm not sure why it has to be deleted though? Tar had better be able to backup symlinks properly or all the rest of your system is buggered anyway?
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, 4, 5, 6 ... 16, 17, 18  Next
Page 5 of 18

 
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