You are not logged in.

#1 2008-03-02 09:20:19

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Arch Linux System Image & Restore

Hi guys. I want to ask how to make an image for my arch system, now that all working ok and If a problem come up, to restore my system to this current condition. Is there a way with failsafe or a prog?

Thank you wink


~k3rn31

Offline

#2 2008-03-02 10:01:49

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Arch Linux System Image & Restore

Using tar is the most simple way smile

tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

This will create a file backup.tgz in your / folder

To restore - Just do a base install and run this command or you could even untar it into an empty partition from the install cd

tar xvpfz backup.tgz -C /

There is stacks of information regarding backup's using tar around the web.  It works flawlessly for me.  No norton ghost's needed wink

Last edited by gazj (2008-03-02 10:04:23)

Offline

#3 2008-03-02 10:42:43

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Arch Linux System Image & Restore

You can even add

--exclude=/dev

because it is dynamically created on startup. wink

But nevertheless, I use the same method to generate a backup of my system.

Offline

#4 2008-03-02 10:46:30

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Arch Linux System Image & Restore

Thank you smile I will use it. The failsave boot creates a backup for only the necessary?


~k3rn31

Offline

#5 2008-03-02 10:48:29

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Arch Linux System Image & Restore

Always seen /dev as a Grey area that's not well documented if it's to be included or not so have always included not sure why, but I am sure it works without, like you say udev creates /dev anyway.

Maybe it's goes back to times before udev was around.

If you have successfully restored without /dev, I will start excluding it wink

Last edited by gazj (2008-03-02 10:51:01)

Offline

#6 2008-03-02 10:57:03

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Arch Linux System Image & Restore

Thank you


~k3rn31

Offline

#7 2008-03-02 11:14:44

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Arch Linux System Image & Restore

gazj wrote:

If you have successfully restored without /dev, I will start excluding it wink

Yes, I have restored one time successfully without /dev included. But if you are not sure, then just let it in, it's just about 4KB small, so it doesn't really matter.

Offline

#8 2008-03-02 11:29:07

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Arch Linux System Image & Restore

Ok then I will include /dev to my tar. Thanks again for the help

Last edited by k3rn31 (2008-03-02 11:29:20)


~k3rn31

Offline

#9 2014-08-16 13:24:20

fhtagn
Member
From: inside your head.
Registered: 2010-12-21
Posts: 16

Re: Arch Linux System Image & Restore

is this still ok to use? It seems simple and effective enough.

gazj wrote:

Using tar is the most simple way smile

tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

This will create a file backup.tgz in your / folder

To restore - Just do a base install and run this command or you could even untar it into an empty partition from the install cd

tar xvpfz backup.tgz -C /

There is stacks of information regarding backup's using tar around the web.  It works flawlessly for me.  No norton ghost's needed wink

Offline

#10 2014-08-16 16:16:30

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Arch Linux System Image & Restore

fhtagn, this thread is six years old. Please don't necrobump.

If you're looking for a backup method, the wiki has some suggestions.

Offline

#11 2014-08-16 16:19:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Arch Linux System Image & Restore


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

Board footer

Powered by FluxBB