You are not logged in.

#1 2009-04-17 09:59:00

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

What system files/dirs do you back up?

I just took a look at some of my backup scripts that I wrote not too long after switching to Linux. I realized that I'd included some things which are probably useless but I'm not sure about some others, so I'd like to know what others back up and why.

I'm fairly sure that all of /etc is worth backing up but I don't know about /var. I compress the local database and save that but I see no reason to save the sync database. I see no reason to back up the package cache either unless I'm using an old version of something. What else is worth backing up in /var? What about the rest of /?

What do you back up outside of /home?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2009-04-17 10:38:51

Blue Peppers
Member
From: Newbury, UK
Registered: 2009-02-01
Posts: 178

Re: What system files/dirs do you back up?

I don't back up anything outside of home (and not much of home). I see a system wipe as a chance to start afresh, not to cling to old remnants of systems long gone (having said that, I don't encourage system wipes). Due to arch's fast set up time, while it may take me a while to set up my perfect system, it takes hardly any time to get a system I can use, thus speed does not necessitate backups of /etc or anything like that.


Consistency is not a virtue.

Offline

#3 2009-04-17 10:41:35

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: What system files/dirs do you back up?

I backup the pacman local db, /home & /etc on another hard drive where i keep my pacman cache dir, music, video's & stuff. I should backup mpd, mysql maybe but i'm lazy


If it ain't broke, broke it then fix it.

Offline

#4 2009-04-17 10:46:07

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: What system files/dirs do you back up?

I backup /etc and my data files.

Offline

#5 2009-04-17 10:47:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: What system files/dirs do you back up?

@Blue Peppers
It seems like a waste of time to reconfigure everything that stores files in /etc (vsftp, apache, ssh, etc). I also wouldn't want to reinstall everything due to a single partition failing, whether or not the initial installation is relatively fast.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2009-04-17 12:53:10

Blue Peppers
Member
From: Newbury, UK
Registered: 2009-02-01
Posts: 178

Re: What system files/dirs do you back up?

Xyne wrote:

@Blue Peppers
It seems like a waste of time to reconfigure everything that stores files in /etc (vsftp, apache, ssh, etc). I also wouldn't want to reinstall everything due to a single partition failing, whether or not the initial installation is relatively fast.

How often does your root partition fail? It happens rarely enough for me, that I don't mind reconfiguring everything over again. I see it as a opportunity to learn, and if it takes longer than half an hour, then so be it. It's no inconvenience to me, and it needn't be to most people. I have a list of apps that I need, ~/.config files for them and no strange configureations anywhere else.

Back when I had just started linux, I was reinstalling (minus backups) every 2 weeks or so. I didn't have a clue, but by re-working those lost configuration files, I learnt how they worked. As I still don't feel I know enough about archlinux, I see losing the files as, while not being a good thing, not a bad thing.

Last edited by Blue Peppers (2009-04-17 12:53:52)


Consistency is not a virtue.

Offline

#7 2009-04-17 13:04:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,497
Website

Re: What system files/dirs do you back up?

/etc/profile/additions
/etc/rc.conf
/etc/rc.local
/etc/sudoers
/etc/X11/xorg.conf
~/.bashrc
~/.inputrc
~/.xinitrc
~/.Xmodmap

And various parts of /home that I do not want to have lost...

Offline

#8 2009-04-17 13:26:24

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: What system files/dirs do you back up?

My music, videos and photos obvious
Various files in /etc that I don't want to lose, esp my x.org config that took awhile to get how I wanted it.

Rsync this up to my home server and also backup to a removable drive occassionally.

Offline

#9 2009-04-18 19:12:06

Trashlord
Member
Registered: 2008-12-08
Posts: 11

Re: What system files/dirs do you back up?

I don't back up virtually anything.

Usually, I only back up recent stuff I've done (such as perl scripts/programs I've written, and don't want to rewrite).

Offline

#10 2009-04-18 19:29:54

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: What system files/dirs do you back up?

I make images of all my partitions regularly and don't worry much about any specific files or folders.  It's been working very well for about the last 5 years and doing so has saved my butt more than a few times.


oz

Offline

#11 2009-04-18 20:06:06

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: What system files/dirs do you back up?

I backup all of /home and /etc using rsync on shutdown. This machine is powered off at least once a day.

Offline

#12 2009-04-18 20:50:39

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: What system files/dirs do you back up?

Blue Peppers wrote:
Xyne wrote:

@Blue Peppers
It seems like a waste of time to reconfigure everything that stores files in /etc (vsftp, apache, ssh, etc). I also wouldn't want to reinstall everything due to a single partition failing, whether or not the initial installation is relatively fast.

How often does your root partition fail? It happens rarely enough for me, that I don't mind reconfiguring everything over again. I see it as a opportunity to learn, and if it takes longer than half an hour, then so be it. It's no inconvenience to me, and it needn't be to most people. I have a list of apps that I need, ~/.config files for them and no strange configureations anywhere else.

Back when I had just started linux, I was reinstalling (minus backups) every 2 weeks or so. I didn't have a clue, but by re-working those lost configuration files, I learnt how they worked. As I still don't feel I know enough about archlinux, I see losing the files as, while not being a good thing, not a bad thing.

/etc is like 30MB for me...no reason not to back it up. As mentioned, there are many config files that would be a pain to reconfigure. Plus, I don't see how you would "learn" how they work, after already taking the time to configure them in the first place. I really don't wanna reconfigure all those, especially all my web server stuff. Doesn't make much sense.


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#13 2009-04-18 21:08:06

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: What system files/dirs do you back up?

At least  $HOME and /etc.

Last edited by Wintervenom (2009-08-03 14:26:14)

Offline

#14 2009-04-19 03:54:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: What system files/dirs do you back up?

/etc/
/home/
/usr/local/
/root/

And this in root's crontab:

0 1 * * *    /usr/bin/pacman -Qe > /root/`/bin/hostname -s`-pacman.pkglst

I also use Back In Time on my Desktop to backup to my file server -- it's jsut a GUI to rsync, but manages snapshots too which is cool:
http://aur.archlinux.org/packages.php?ID=23002

Last edited by fukawi2 (2009-04-19 03:55:51)

Offline

#15 2009-04-19 14:13:02

jwcxz
Member
Registered: 2008-09-23
Posts: 239
Website

Re: What system files/dirs do you back up?

I back up my home directory, which is around 30 gigs (minus the virtual machines); /etc on occasion; and I also backup my list of packages once in a while.

As for my backup mechanism, I just use DAR.  Every month, I create a full backup and store it to my server.  Then, every Friday, I use DAR's differential backup capabilities and SSH to transfer my changed files over to the server.


-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers

Offline

#16 2009-04-20 00:34:04

celthias
Member
Registered: 2008-04-15
Posts: 83

Re: What system files/dirs do you back up?

Things like

/etc/rc.conf
/etc/hosts
/etc/mpd.conf
.Xdefaults
.xinitrc
.bashrc
and other ~/ configs like openbox configs are all symlinked to my dropbox folder, so they're backed up more or less as soon as the changes are made. The same applies to other regular smallish files in my ~/, but that's OT.

Offline

#17 2009-04-21 09:29:41

MoffspringR
Member
Registered: 2009-03-23
Posts: 36

Re: What system files/dirs do you back up?

I backup my /home and xorg.conf tongue

In my /home, I backup all files include hiden folders: .opera, and another ".gnome*" folders


Laptop: Sony Vaio VGN-FW21E    => Nickname: The worker
Hardware: Intel C2D P8400 (2.26GHz) + 4GB DDRII + 320GB SATAII + ATI Radeon HD3470
System: ArchLinux 64bits + 2.6.28-Arch + Gnome/KDE
I am registered Linux user number 437535, registered in 2006-12-13.

Offline

#18 2009-04-21 13:35:16

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: What system files/dirs do you back up?

Home and /etc here as well.  I find it easier to just backup all of /etc and then restore as needed.

Offline

#19 2009-04-21 13:52:39

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: What system files/dirs do you back up?

I just have my most important configuration files from /home and /etc in a git repository (github). I have had only one harddisk die on me so far and there was nothing really crucial on it, so right now I'm not very paranoid about losing data. I guess my time will come smile

Offline

#20 2009-04-27 09:45:17

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: What system files/dirs do you back up?

Like most everyone here, selected files from /home and /etc.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB