LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-15-2009, 01:45 PM   #1
globaltree
Member
 
Registered: Oct 2007
Location: Oregon
Distribution: Slackware 12.2
Posts: 65

Rep: Reputation: 18
can makepkg backup my entire system


Hello Bob:

I thought I would save the time that trial and error would occupy by asking fellow slackers first before I tried the following idea for backing up my system:

If I booted the system I wanted to backup (because I want to easily clone it to other machines) from an external drive (so I wouldn't be using the internal system I want to back up), and then mounted my root partition somewhere, and my other partitions, such as /var and /tmp inside the root's mountpoint, such that I could chroot into that directory if I wanted to; if I did all that, couldn't I just cd (not chroot) into that directory, and then use makepkg /path/to/backup.tgz to make a slackpack of my entire system?

It makes sense to me, but I would hate to go through all of that for nothing, so I thought I would ask first.

Thanks in advance. (oh yeah, I'm running slackware 12.2)

Last edited by globaltree; 09-15-2009 at 01:46 PM. Reason: added slackware version
 
Old 09-15-2009, 02:21 PM   #2
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Quote:
Originally Posted by globaltree View Post
and then use makepkg /path/to/backup.tgz to make a slackpack of my entire system?
Makepkg just uses gzip and tar (more compression formats available in 13.0) to create a compressed archive of a directory and all subdirectories. So you don't need makepkg to do what you want since you could just tar and then gzip yourself, though makepkg does do some other work with symlinks which you can read about in its man page.

Also does makepkg require a slackdesc file? It might fail without one, which would be another reason not to use makepkg.
 
Old 09-15-2009, 02:31 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
I recommend you just use clonezilla to clone the system.
 
Old 09-15-2009, 03:15 PM   #4
globaltree
Member
 
Registered: Oct 2007
Location: Oregon
Distribution: Slackware 12.2
Posts: 65

Original Poster
Rep: Reputation: 18
thanks

Thanks piratesmack: the multicasting feature of clonezilla looks like it will really be a time saver... (i am recycling old computers and giving them to home schooled students, and was looking for a way to batch install); thanks.

It is not hard, though to add an install directory and a 11-line slack-desc file. When recycling ppc computers, I work with the ppc port of slackware, called slackintosh, and there are few precompiled binaries for slackintosh, so I found my self writing slack-desc files so much that I used perl to automate the process. I did overlook the slack-desc in my post, but I think that makepkg would do the job (if I didn't just discover clonezilla)... but as brixtoncalling points out... it is just tar and gunzip with some symlink and ownership scripts... so could just scip slack-desc and use tar and gunzip... whichever's quickest


My only remaining question:

If I used makepkg (or tar/gunzip), and then mounted a different system and used isntallpkg (or tar -zxf) to install the backup.tgz to the different system, I probably would have to run lilo again to make the new system bootable.

What about with clonezilla. Are the clones bootable, or would I have to run lilo again?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Ubuntu 7.10 on DVD - The Entire System taurusx5 Linux - Software 1 02-21-2008 10:49 PM
How to backup entire system without shutting down andrewjschmidt Linux - General 6 06-01-2004 06:01 PM
Backup entire system with tar sln Linux - General 2 04-30-2004 03:32 AM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 08:48 AM
Can u backup entire LFS in such way ?? sapilas Linux From Scratch 1 05-02-2002 01:26 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration