Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-15-2009, 02:45 PM   #1
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 02:46 PM. Reason: added slackware version
Old 09-15-2009, 03:21 PM   #2
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
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, 03:31 PM   #3
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

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

Original Poster
Rep: Reputation: 18

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?


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 11:49 PM
How to backup entire system without shutting down andrewjschmidt Linux - General 6 06-01-2004 07:01 PM
Backup entire system with tar sln Linux - General 2 04-30-2004 04:32 AM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 09:48 AM
Can u backup entire LFS in such way ?? sapilas Linux From Scratch 1 05-02-2002 02:26 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 AM.

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