Back up Linux system
Author
Discussion

Tycho

Original Poster:

12,298 posts

304 months

Sunday 24th June 2007
quotequote all
I have got my Ubuntu install up and running with Beryl working and want to back it all up to a CD so if I fcuk it up I can just bung in a CD and restore to a known good config.

What is the best program to do this with? Maybe something similar to Norton Ghost?

shocker-z

554 posts

249 months

Sunday 24th June 2007
quotequote all
Here's one option but i haven't tested

http://www.pcquest.com/content/linux/2005/10504120...

just google for ghosting linux or simular

Tycho

Original Poster:

12,298 posts

304 months

Sunday 24th June 2007
quotequote all
shocker-z said:
Here's one option but i haven't tested

http://www.pcquest.com/content/linux/2005/10504120...

just google for ghosting linux or simular
Thanks, I saw that but I'm not too sure if it gives you the option to back up to cd or not, will investigate.

ThePassenger

6,962 posts

266 months

Monday 25th June 2007
quotequote all
You could just backup /home and /etc (that's where all the configs are usually kept). You're still left reinstalling stuff if you wipe but at least you can just splat the old configs on and it's hot to trot.

On the other hand if you leave it the hell alone it will most likely just keep going, it's what *nix is good at. smile

sadako

7,080 posts

269 months

Monday 25th June 2007
quotequote all
You could use dd to make an image, however the images tend to be very large. I am sure that there is a way to dd it and compress it to a tarball at the same time but i've not worked that part out yet

Spokey

2,246 posts

240 months

Monday 25th June 2007
quotequote all
sadako said:
You could use dd to make an image, however the images tend to be very large. I am sure that there is a way to dd it and compress it to a tarball at the same time but i've not worked that part out yet
tar cvzf /dev/tapedevice /

Tycho

Original Poster:

12,298 posts

304 months

Monday 25th June 2007
quotequote all
thanks for the advice guys, the reason I want to get an image is to preserve the Beryl installation I have as apparently when you install it, you get a version from Beryl themselves, not the multiverse. When you re-enabe=le the multiverse, you get a Beryl update in the software update section which if you install it, you will break the existing Beryl installation. I know with my limitred Linux experience, I'll probably just install the update.... hence the question.

Maybe another way is to get it to never update the Beryl packages?

Zumbruk

7,848 posts

291 months

Monday 25th June 2007
quotequote all
Spokey said:
sadako said:
You could use dd to make an image, however the images tend to be very large. I am sure that there is a way to dd it and compress it to a tarball at the same time but i've not worked that part out yet
tar cvzf /dev/tapedevice /
tar sometimes barfs on very long filenames, files that aren't files (/dev/ entries) and has a habit of unwinding links. It's not the correct tool for doing backups.

ufsdump /dev/tapedevice /

ufsdump is intended for doing backups. It will only backup & restore whole filesystems, though, and the OP seems to want to back up only specific directories, in which case 'cpio' is the right tool.

NickFRP

5,156 posts

266 months

Monday 25th June 2007
quotequote all
search for webmin on google..

they have a back up section in there!

SneakyNeil

9,296 posts

268 months

Monday 25th June 2007
quotequote all
sadako said:
You could use dd to make an image, however the images tend to be very large. I am sure that there is a way to dd it and compress it to a tarball at the same time but i've not worked that part out yet
You can dd to stdout and pipe it into gzip, I've done it in the past but sadly didn't make a note of the command line. Gzip doesn't get very good compression by todays standards though so if you could get say 7zip to compress from stdin to file that would be best I think?

eta, just checked and if you do dd without the -of= bit it will output to stdio, which you could then | to 7zip using the -si switch.

Edited by SneakyNeil on Monday 25th June 13:48

Spokey

2,246 posts

240 months

Monday 25th June 2007
quotequote all
Zumbruk said:
tar sometimes barfs on very long filenames, files that aren't files (/dev/ entries) and has a habit of unwinding links. It's not the correct tool for doing backups.

ufsdump /dev/tapedevice /

ufsdump is intended for doing backups. It will only backup & restore whole filesystems, though, and the OP seems to want to back up only specific directories, in which case 'cpio' is the right tool.
I guess I've been doing it wrong for the last 25 years then. I must have just been lucky.

ThePassenger

6,962 posts

266 months

Monday 25th June 2007
quotequote all
Spokey said:
Zumbruk said:
tar sometimes barfs on very long filenames, files that aren't files (/dev/ entries) and has a habit of unwinding links. It's not the correct tool for doing backups.

ufsdump /dev/tapedevice /

ufsdump is intended for doing backups. It will only backup & restore whole filesystems, though, and the OP seems to want to back up only specific directories, in which case 'cpio' is the right tool.
I guess I've been doing it wrong for the last 25 years then. I must have just been lucky.
I'd wager version of tar and OS's change things smile

Zumbruk

7,848 posts

291 months

Monday 25th June 2007
quotequote all
Spokey said:
Zumbruk said:
tar sometimes barfs on very long filenames, files that aren't files (/dev/ entries) and has a habit of unwinding links. It's not the correct tool for doing backups.

ufsdump /dev/tapedevice /

ufsdump is intended for doing backups. It will only backup & restore whole filesystems, though, and the OP seems to want to back up only specific directories, in which case 'cpio' is the right tool.
I guess I've been doing it wrong for the last 25 years then. I must have just been lucky.
Yes, you have and you are. tar is not a backup tool. (Oh, and I'm not particularly impressed by dicksize arguments, either. I don't care how long you've been doing it incorrectly)

I'd be interested to see how you can back up an Oracle database using tar, too.


Edited by Zumbruk on Monday 25th June 14:57