Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2011, 09:15 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Hot backup of root with it safe?

Hi guys,

Im kinda new here and i would like to know if its safe to backup root partition with cpio. I need to do an online backup of running system so i can't unmount partition or so to dump it or dd it.
Is it safe? is there any chance the backup would be inconsistent or so? What is the worst what could happend? will the files used by a running system backup correctly?
Running opensuse 11.3 and some basic daemons like ftp,www server...

BTW i did try search with tag "cpio" but there was not such a topic.

Old 02-22-2011, 10:25 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,271

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
You don't want directories like /proc /sys /dev from a running system. /proc is the ram. You don't want to use cpio, unless you have a special reason to. Are you reading your grandfather's guide to unix? :-)
Old 02-22-2011, 10:35 AM   #3
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
yeah instead use rsync because it is like a copy utility but will let you exclude the latter folders you don't to backup
Old 02-22-2011, 12:28 PM   #4
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
It's not a reliable way to backup. Since files will be being changed, the backup may not be in a consistent state. It shouldn't actually affect the running system (as long as you don't try and backup your backup in an infinite recursion!), but problems could come if you need to do a full restore.

If you need to backup a running system, you need a means to take a "snapshot" of said system. LVM can do this, as can some filesystems, and virtual machines. But these are things you need to set up at install, and I'm guessing you haven't.
Old 02-23-2011, 02:19 AM   #5
LQ Newbie
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you guys for the replies. Looks like am at the dead end.
I got basic partitions not LVM, so i will copy all files and then i will pray that no errors will appear


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
Full Backup With Cpio! grim2 Linux - General 6 02-09-2012 06:43 AM
CPIO backup / configuration exactiv Linux - Software 3 05-25-2009 09:51 AM
CPIO Backup End of Media rma1 Other *NIX 3 10-30-2008 11:19 AM
Cannot fork after running CPIO backup sgamble2 Red Hat 1 10-28-2006 07:13 AM
Using cpio to backup to CDROM Cyberhund Linux - Newbie 3 07-21-2004 01:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 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