You are not logged in.

#1 2009-10-29 21:15:36

PrimoTurbo
Member
Registered: 2008-06-26
Posts: 109
Website

Best way to make a backup of home directory and system files?

I need to create a backup of my /home/user directory and important files like xorg.conf rc.conf & /boot/grub/menu.lst ?

I would like to put it all into a tar file so I can keep the system on windows with out messing up the files.

Any suggestions?

Offline

#2 2009-10-29 23:39:34

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Best way to make a backup of home directory and system files?

You can just use "tar" itself. /etc is so small that it's easy enough just to put the whole thing inside.

Offline

#3 2009-10-29 23:48:10

valnour
Member
From: Cleveland, TN, USA
Registered: 2008-02-17
Posts: 84
Website

Re: Best way to make a backup of home directory and system files?

You should probably compress the archive as well.

tar cvvjf backup.tar.bz2 files_to_backup

Then go get yourself a cup of coffee, because it will probably take a while.

Offline

#4 2009-10-30 00:24:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Best way to make a backup of home directory and system files?

Here's mine:

tar zcvfp arch-system.gz /etc /boot /root
tar zcvfp user1.tar.gz /home/user1
tar zcvfp user2.tar.gz /home/user2
tar zcvfp var.tar.gz /var --exclude "/var/cache/pacman/pkg"

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-10-30 00:39:14

valnour
Member
From: Cleveland, TN, USA
Registered: 2008-02-17
Posts: 84
Website

Re: Best way to make a backup of home directory and system files?

I normally backup to my desktop (from my laptop).

tar cvvjf - * | ssh valnour@evasion0 "cat > /home/valnour/backup.tar.bz2"

That's the kind of command I like to show my Windows friends, to show them the power of the *nix command line. They can't do offsite, compressed backups over an encrypted tunnel like that. No sir.

Offline

#6 2009-10-30 14:38:41

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Best way to make a backup of home directory and system files?

I just did this and took notes so it might be your lucky day because I created a wiki page for it:

Restore from Configurations

Last edited by Gen2ly (2009-10-30 14:39:18)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#7 2009-10-30 15:12:30

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Best way to make a backup of home directory and system files?

Gen2ly wrote:

I just did this and took notes so it might be your lucky day because I created a wiki page for it:

Restore from Configurations

Terrific job.
I would suggest changing the name to "System Restore from Configuration".

Offline

#8 2009-10-30 16:11:37

Ruckus
Member
Registered: 2007-02-17
Posts: 204

Re: Best way to make a backup of home directory and system files?

I've been using duplicity.

Offline

#9 2009-10-30 22:08:27

cobra2
Member
From: deep in Dixie with Arch64
Registered: 2009-09-10
Posts: 27

Re: Best way to make a backup of home directory and system files?

I use a few small bash scripts that are on my fileserver, which runs gentoo. They use rsync to pull the files from different machines then tar the files and move the tar to an archive directory specific to each machine.


Hardware is like a parachute.... works best when open.

Offline

#10 2009-10-31 02:13:06

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Best way to make a backup of home directory and system files?

Misfit138 wrote:
Gen2ly wrote:

I just did this and took notes so it might be your lucky day because I created a wiki page for it:

Restore from Configurations

Terrific job.
I would suggest changing the name to "System Restore from Configuration".

Thank you.

Done.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB