Ubuntu :: Use Cpio Command For Back Up Files?
Feb 14, 2011I 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 RepliesI 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 RepliesI 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 RelatedThe 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
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 RelatedI 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.
i accidently hit this command inside my /var/www folder. im screwed big time.I need to recover my files back. is there any chance ?
View 1 Replies View RelatedI,m using Ubuntu 10.10 with Gimp. Ive got a lot of photos etc and need to back these up. Can I anyone suggest a good backup solution which does not require e to keep copying the same files? IE: Once the files are backed up I only want to back the files used since last back up?
View 11 Replies View Relatedi 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.
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.
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]...
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.
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 RelatedI had make changes on the following text in Ubuntu terminal, how can I save the changes and go back to the main command?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/support/sohai
[code]....
I had some trouble before getting to install Webmin on my nas from the command line in Ubuntu Server So I wanted to temporary install a gui and used kde. Downloaded it via the browser.Now I got webmin running and tried to remove KDE again. Some things were removed but the inlog screen is still there, and now it looks more like a gnome interface when I logged on.How can I remove the GUI completely again?
View 1 Replies View RelatedI have been using the net command for a while now to remotely shutdown my windows machine, I believe that it comes with the samba package.
"net rpc shutdown -f -I IP_ADDRESS -U USERNAME%PASSWORD"
I run a Ubuntu 10.10 x86 Netbook edition computer, and have recently updated my software because my computer asked me to and the net command recently stopped working so I assume this is the cause.
It was simply saying that the net command did not exist, but after playing around installing packages I installed samba4 and got it recognizing the command net. But it no longer works the same and does not support "rpc shutdown" nor does it appear to have any replacement for it.
Was the command simply depreciated? if so how can I stop this from happening again, I use net all the time and am not happy that it would disappear without warning.
Can I get the command back somehow, or do any of your have a replacement?
I was writing a bash script which attached to another script. The issue I'm having is, when I use the exit command written in the script, it takes me back to the first script. How do I disable this?
View 1 Replies View RelatedI'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]....
I tried a program called BarPanel, which replaces the Gnome Panels. The installation instructions told me to download the program installer (the program installs automatically for Debian/Ubuntu users). Then I had to go to System > Preferences > Sessions to remove the gnome-panel entry and add the BarPanel one. So far so good. On re-starting, the new panels were installed to my desk top in bright green! The problem was that a lot of the icons don't work. The action menu does nothing and there is no entry for Sessions in the System menu, so I can't go back and undo. I have re-installed gnome-panel under Synaptic, without any success. I un-installed BarPanel, so I now don't have any panels at all now! One good thing is that I have Cairo-dock on my desktop, so I have access to several programs, including the terminal.
Can someone out there give me the command line instructions to get the gnome panels back.
I am using the diff command with the -r option, to compare a large number of files and files in subdirectories. My main interest is to find out which files have been changed, and not what the actual changes are, and since a lot of files has been changed, it would be a lot easier to view the file names only. Is there and option for diff that might do this, or does there exist a similar tool/command that could do the job?
View 1 Replies View RelatedI went to open a file today and noticed it wasn't there. After looking around i noticed most of my recent documents weren't there. They still show up in my recent documents bar, it just says they don't exist when i try to run them.
Any ideas of how this happened or how to get them back.
I just backup my files. During restoration, there's a hash mismatch report. What I want to know is that, is there a way to restore certain files in the back up?
or is there are way to restore files by volume?
Is it possible to use cd command to navigate back and forward (like browser)?. Something similar to cd - but it only swaps current and last location. I know I can push dir on stack, it would be great to use cd -> and cd <-, though.
View 3 Replies View RelatedIs there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.
Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.
from several problems with ubuntu/linux distros, just to have the compuer with main windows OS, Ubuntu as a second and backup and puppy too after a week of madness codes sudos gedits installing reinstalling 2 3 may be 7 times.the system is now quite stable (i had to erase the lucid lynx because nobody was able to help me with the problem of the missing panels. ill have to wait for a fix..
now i have a fresh install of 8.04 (i had to uninstall it because i move partitions ad grub wents down, i tried EVERYTHING and nothing but reinstalling it)i used puppy linux to extract my files (home folder) and save it int a new ext3 partition, then when this ubuntu8.04 was OK, i tried to move my files back. i tried to doit from ubuntu, and i saw a little padlock on the folder, i tryed to move it, and i cant, then i restart to tryit form puppy, i was able to doit from puppy, then i restart again back to ubuntu, now with the folder in ubuntu partition i now have to put each file/folder where it was supposed to be, but again i saw some older with the padlock icon and with the same problem, that i can't move it because i have no permission. i tryed to find some help before opening this thread but all i want was to open a gksudo nautilus on terminal, but that doesnt fix anything, because that open a wibdows and i only can move "locked" files withing that folder, and those are my files i need to move it all the time, i can't open a gksudo nautilus every time i want to move one of my files.
I had everything backed up so it is no great disaster, but drop box lost a lot of my files. Some of the folders with missing files now have thumbs.db in them, but when you go to the dropbox site, you don't even see that.
I had thought about using dropbox as my main backup solution. That would be a big mistake.
1) Can I use the LiveCD to access my files stored in Windows? (The attached screenshot shows my Computer.)
2) If so, can I backup the files to DVD using CDDVD Creator, which comes with Ubuntu? If not, what must I do to accomplish these 2 things if I install Ubuntu?
I'm constantly going 'cd ../../../../'. Is there a command/alias that could let me go 'cmd 4' and I'd be taken back 4 directories?
View 8 Replies View Relatedim following a tutorial to setup a dns server, after editing vi etc/sysconfig/syslog, i cant seem to save me changes or exit the screen to get back to a command prompt. have tried to google the answer to no avail, any ideas? also im using putty to ssh, is the answer the same as using the terminal directly?
View 2 Replies View RelatedI'm have much computer experience but am new to Ubuntu. I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting!
View 5 Replies View RelatedI need to save some .c files. The Red Hat Linux 5.5 machine I am on has a DVD multi recorder drive in it. A cdrecord -scanbus gives me "4,0,0 400) 'TSSTcorp' 'DVD+-RW TS-L633C' 'D250' Removable CD-ROM".
When I add "/dev/dvdrw /mnt/dvd-rw iso9660 user,kudzu 0 0" to /etc/fstab and do a mount /mnt/dvd-rw, I get "mount: block device /dvd/dvdrw is write-protected, mounting read-only", "mount: wrong fs type, bad option, bad superblock on /dev/dvdrw, missing codepage or other error".
I go about this another way? All I need to do is save some source files to the dvd and restore them on another machine.