General :: Hot Backup Of Root With Cpio?
Feb 22, 2011
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.
View 4 Replies
ADVERTISEMENT
May 4, 2010
Suppose I have a good backup of the / root filesystem. How do I recover the / root area? Suppose I have modified the root filesystem, perhaps I do an update some of the packages and regret it, and I want to get back to the system at the time of the backup. How do most linux people recover the root area of a system from a backup?
1) I wondered if I might put a System Rescue CD in and boot off it?
2) And then NFS mount the directory containing the backup? -In my case, I have made a good backup using rsync, to a directory elsewhere on the network.
3) And then, still booted off the System Rescue CD, mount the partition that contains the / root area in question?
4) Would I then clear or empty or delete the contents from the / root partition?
5) And then copy across all the files from the backup into the / root partition?
I ask these questions because of the (very nice) way linux OS is built entirely from packages... Am I being too complicated? (By comparison, I can see it is easy to recover user data.)If, instead, I simply recovered the backup straight onto the updated root filesystem, I wonder what it would look like if I then tried to verify it with "rpm -Va", for example? Surely, all the packages would fail the verification, because it would think it has a later version of each package from the update, but the actual files would have been overwritten by the earlier version from the backup?
View 14 Replies
View Related
Oct 19, 2010
I have RHEL 5.3.
I am trying to build a e1000 network card driver rpm with particular requirement to have cpio.gz inside rpm.
But after i build my rpm driver it has cpio.lzma inside. I simply build using command from the readme: rpmbuild -tb *.tar.gz.
I have googled and found that from around 5.0 RHEL includes lzma and uses it as a default setting. Is there any way to force to use cpio.gz or somehow repackage my rpm correctly?
I have searched through makefile and other files but was not able to find a clue.
View 11 Replies
View Related
Oct 12, 2010
Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.
What would be the best procedure to create a backup image with all settings and permissions ...just in case ?
View 5 Replies
View Related
Apr 23, 2011
I want to install Forms & Reports Developer Suite in Linux OS So I have downloaded Oracle Developer Suite 10g for Linux (Including Forms & Reports)
as_linux_x86_ids_101202_disk1.cpio
as_linux_x86_ids_101202_disk2.cpio
So in the Oracle Documentation Site they have given Guide as Follows:
To extract the cpio file,
move the cpio file to an empty directory,
then do:
cat filename.cpio | cpio -icd ....
but its not extracting.
View 7 Replies
View Related
Sep 15, 2009
I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11
View 2 Replies
View Related
May 21, 2011
I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).
The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:
1. /backup/
2. /media/backup/
3. /mnt/backup/
4. /home/chris/backup/
View 7 Replies
View Related
Jun 25, 2010
I was trying to extract a file by using this command cpio -idmvz <file.cpio.gz> but system hangs. Nothing gets extracted.
View 3 Replies
View Related
Sep 13, 2010
Can some one give me a sample of a crontab for backing a directory please, System is Ubuntu 9.04Quote:
#!/bin/bash
# this file is an automated backup script, backup.sh.
# this backs up my domain site.
[code]....
View 7 Replies
View Related
Feb 14, 2011
I want to use cpio command for back up my files. but I cant understand what's the meaning of -p in this command. pass through?
View 2 Replies
View Related
Nov 12, 2009
The last time I did a restore using cpio under CentOS 3.9 it took a very long time for me to find my seemingly correct command wasn't working and I ended up doing the work in Knoppix. This time I thought I'd run my command by wiser heads before the necessary tape turns up and I spend a lot of time finding my command doesn't work. cpio -i -mtvV --block-size=128 --no-absolute-filenames /var/log/maillog* < /dev/st0
Does this look right? The backup string is find / -path /mnt -prune -o -path /lost+found -prune -o -path /sys -prune -o -path /proc -prune -o -path /swapfile1 -prune -o -path /var/named/chroot/proc -prune -o -print | cpio -o -H crc --block-size=128 > /dev/st0
EDIT: I changed the restore string to cpio -i -mtvV --block-size=128 --no-absolute-filenames *var/log/maillog* < /dev/st0 EDIT2: Whoops, should be cpio -i -mvV --block-size=128 --no-absolute-filenames *var/log/maillog* < /dev/st0
View 1 Replies
View Related
Mar 21, 2011
On my main work machine I have openSUSE 11.4 standard KDE on two partitions, standard root and standard /home. I'm going to add the Tumbleweed repos and follow the evolution of openSUSE until 11.5/12.0 is released.
But I cannot afford to have my main work machine off the air. So I want to back up the root parttiion each time I go a major upgrade from the Tumbleweed repos.
So I thought I would just image the root partition in compressed/reduced form to a USB drive prior to updating.
First I looked at Partimage but it doesn't do the EXT4 filesystem.
Second I thought about Clonezilla but it doesn't allow compression (it states that the target for the image must be at least as big as the source partition); thus DD is just as limited.
Third I looked at the System backup and restore facility in Yast but it seems to be undocumented (i.e. I can't find it.)
Then I thought why not just use cp because the root filesystem of 11.4 for me is only occupying 6Gb ATM. I propose to use "cp -a -u -v" from a live CD to copy the root files to a USB drive with an EXT4 partition.
So two questions:is there a flaw in backing up the system/root with "cp -a -u -v"
is there a better imaging software for a small job like this
View 9 Replies
View Related
Jul 28, 2011
I would like to attempt creating a cron job to backup my root (/dev/sda1) & home (/dev/sda3) partitions to an external USB drive.I have been using Clonezilla to make image backups but, I have to physically do it, when I remember or have the time. I have never created a cron job, and worse, I have never created a .sh file which, I think, is what I need to do.
View 12 Replies
View Related
Dec 8, 2010
I am trying to copy my /home directory to a separate partition. I have seen a lot of info on this on the internet. Most of the information uses cpio to copy the files. The destination partition has been successfukky mounter.
View 2 Replies
View Related
Jun 14, 2011
Below is the oneliner that I am using to exclude all of "." hidden directories within the same directory.
Code:
cd find . -depth ( -wholename ./.* ) -prune -o -print | cpio -oav > /media/caca/extract/full$date.cpio
it works fine but when I extract the files from the full$date.cpio archive it appears to have worked but gives me permission errors:
Code:
cd /media/caca/extract
cpio -ivd < full061411.cpio
cpio: Selection_001.png: Cannot change mode to rw-r--r--: Operation not permitted
Selection_001.png
cpio: Selection_002.png: Cannot change mode to rw-r--r--: Operation not permitted
Selection_002.png
[Code]...
View 4 Replies
View Related
Jan 26, 2011
how to create an initrd image using cpio, instead of mkfs?
Now im doing it like this:
Code:
dd if=/dev/zero of=initrd bs=1024 count=10000
mkfs -t ext2 -F -m 0 -b 1024 -i 1024 initrd
But i would like to move to cpio, because with dd, if you add something new, you might need to change the count. Also cpio is used in distro's like Fedora and Ubuntu.
View 2 Replies
View Related
Mar 9, 2010
I worked everyday during 1.5 years on a Wubi installation of Ubuntu 8.10.
Before quitting my job I have made a simple copy of the root.disk file, thinking I could restore it easily later.
Now I would restore this system on a Virtual Machine (with Virtual Box)
Have you got an idea how i could do this??
(I already tryied to install another wubi on a virtualized Windows 7, the install complete but I can't see ubuntu in the boot loader...)
View 1 Replies
View Related
Jul 1, 2011
Im trying to build an initrd image for my livecd using cpio -o -H newc, but the livecd can't boot. If I create the initrd image using mkfs.ext2 then it works.
View 2 Replies
View Related
Jan 9, 2010
I'm not sure wether this is the correct forum for this, but this is the best place I can see at the moment, so I'll give it a try. Please redirect me if I'm mistaken.Running Suse 11.2, I have a RAID-5 device mounted, and a straigt disk. I want to copy data from the straigt disk to the array, using several methods: with Dolphin, with cpio. Copying runs for some time, sometimes one or some files are copied indeed, but after a short time (sometimes half a minute, sometimes 10 minutes or more) I get a
Message from syslogd@linux-wrth at Jan 9 22:44:03 ...
kernel:[ 381.602651] Oops: 0000 [#1] PREEMPT SMP
Message from syslogd@linux-wrth at Jan 9 22:44:03 ...
[code]....
View 2 Replies
View Related
Jan 22, 2010
An old machine in our office, running Ubuntu 6.06 all of a sudden will not boot up. I get the following info during boot:
Uncompressing Linux... Ok Booting the kernel
mount: Mounting /root/sda1 /root failed: No such device
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
[code]....
I haven't changed anything on the system as far as I'm aware, and I ran some HD diagnostics and everything seems fine. however when I try to mount the drive with the following command:
sudo mount -t ext3 -o rw /dev/hda1 /mnt
I get the following error:
mount: wrong fs type, bad option, bad
superblock on /dev/sda1, missing code
page or helper program, or other error
In some cases useful info is found in
syslog - try dmesg | tail or so
I ran fdisk -l and it says the partition type is Linux. The output after running dmesg | tail :
[12207.483801] init_special_inode: bogus i_mode (101)
[12207.483809] EXT2-fs: corrupt root inode, run e2fsck
[12260.427078] init_special_inode: bogus i_mode (101)
[code]...
Update: After running e2fsck -p /dev/sda1, I get the following info:
/dev/sda1: clean, 142449 / 9584640 files, 5402711 / 19161520 blocks
View 1 Replies
View Related
Mar 2, 2010
i used opensuse 11.1 ...there is option for root user to create password for root...but for ubuntu i did not find anything like that...so how can i create root password....or how can i use root
View 1 Replies
View Related
Jun 28, 2011
I created a chroot jail in /SECURITY/Jail. But when I used the command 'sudo chroot /SECURITY/Jail' to enter the fake root, I got an error message likegroups: cannot find name for group ID 105groups: cannot find name for group ID 119.
View 1 Replies
View Related
Dec 2, 2010
i just installed linux mandriva 2009. i set password for root and created a user account. when i try to login as root, after logging out as user, it does not allow me and gives the error "root logins are not allowed". even it does not show the root account. if i try to go to root from konsole terminal using su root, it allows to enter as a root but when i try to start the GUI with startx it gives error.not sure what to do and why i can't see my account in GUI mode
View 5 Replies
View Related
Apr 9, 2010
I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened three times, and the process was ended. I then logged in as root (su) and was able to navigate to the file and make changes as root. Am I missing something? How would I edit the sudoers file such that this password would work? Or is there another way to log in to the sudo group to make these changes? How do I set sudo passwords?
View 1 Replies
View Related
Dec 21, 2010
My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:
# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
[code]...
View 3 Replies
View Related
Apr 21, 2011
I am trying to install google chrome on my computer, it is in a .deb package and I am using dreamlinux. Earlier today I installed a .cbr/.cbz file reader from root, that was also a .deb and it worked just fine. now I go to install google chrome and it says (Blue is my command, and red is the system response):
I checked under my USER GROUPS and Root is still set as root, and I haven't been using it unless I need to install with it to other directories, Should I be using another command to install? or is it a problem that may affect other aspects of my system? ... My biggest concern is not getting google in, I can wait for that ... I just wanna know why ROOT is under the impression it's not a superuser.
View 3 Replies
View Related
Mar 8, 2011
I have a machine which has only /opt with some decent amount of space where I can install a software. /opt belongs to root:root. The software I want to install cannot be installed as root user.
So lets say I create a directory called /opt/install1 and then chown -R install1 to belong to user1. And now I install the software under /opt/install1 with user as user1.
Is this a best practice violation? There could potentially be just /opt/install1 belong to user1 and in future everything else created under /opt belonging to root..
View 2 Replies
View Related
May 18, 2010
using Back In Time to backup my home directory to a second hdd that is mounted at /media/backupThe trouble is, I can do this using Back In Time (Root), but not using Back In Time without the root option. This is definitely a permissions issue - it can't write to the folder, but when I checked by right clicking on the backup directory and looking at the permission tab, it said I was the owner
View 2 Replies
View Related
May 10, 2011
I install and tested Restore EE Backup server on a test PC with basic configuration and its working fine.
[URL]
The issue i have is where is the location these backup snapshots or files are saving? I want to add a separate Storage to save the backup?
View 1 Replies
View Related
Jun 12, 2010
I have been looking for a complete backup solution like "Acronis True Image Backup and Recovery" on Windows for Slackware a while.
View 12 Replies
View Related