You are not logged in.

#1 2010-05-31 22:11:50

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Runlevel for taking backups

I'm sure I've seen somewhere a recommendation to use runlevel one to take backups to ensure filesystem consistency, however that kills automation unless I handle it through inittab, which seems a bit backwards. So, how essential is having an unchanging filesystem when running rsync to backup everything and how else could I ensure a stable filesystem without runlevel switching? I thought about remounting partitions read-only, but that doesn't work if something is using them.

Last edited by Barrucadu (2010-05-31 22:12:25)

Offline

#2 2010-06-01 03:57:29

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Runlevel for taking backups

LVM snapshots come to mind ...


1000

Offline

#3 2010-06-01 07:12:38

bruce
Member
Registered: 2008-11-27
Posts: 57

Re: Runlevel for taking backups

I'd suggest that its primarily important to "ensure filesystem consistency" when using a tool like dd (ie. something that's interacting with the disk on a block type level) by comparison to a (relatively) high level tool like rsync, I suggest you'd be fine....
Although this is all (primarily) just guess work (although I'd like to say hypothesis :-p ), so take it or leave it tongue

Offline

#4 2010-06-01 08:32:57

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

Re: Runlevel for taking backups

Doing file-system level backups are generally fine* without changing run-levels.

As bruce mentioned, if you want to do block-level backups using dd or dump then it becomes important.

At the end of the day, doing the backup is only half the job. You have to do test restores as well, so that will highlight if you have any issues with your backup stage.

* Exceptions to this are things like database files. The files will backup OK, but if the database is running, then you've backed them up in an "open" state which the DBMS may not like recovering from in a restore situation. Text files, music, movies, documents etc should be fine.

Offline

Board footer

Powered by FluxBB