LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 09: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, 10:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
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
silvyus_06
Member
 
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
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration