Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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? :-)
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.