LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 0
Hot backup of root with cpio..is 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.

Thanks
 
Old 02-22-2011, 11:25 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,572

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
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, 11:35 AM   #3
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 386

Rep: Reputation: 49
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, 01:28 PM   #4
cantab
Member
 
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, 03:19 AM   #5
Mikoman
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
 
  


Reply


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 07:43 AM
CPIO backup / configuration exactiv Linux - Software 3 05-25-2009 10:51 AM
CPIO Backup End of Media rma1 Other *NIX 3 10-30-2008 12:19 PM
Cannot fork after running CPIO backup sgamble2 Red Hat 1 10-28-2006 08:13 AM
Using cpio to backup to CDROM Cyberhund Linux - Newbie 3 07-21-2004 02:49 PM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration