The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cpio error. alisevA3 UNIX for Dummies Questions & Answers 1 05-03-2006 12:04 PM
cpio write i/o error fidodido UNIX for Dummies Questions & Answers 6 04-07-2006 03:40 PM
Please help with cpio on HP-UX soestx HP-UX 3 01-13-2006 06:07 PM
cpio kok UNIX for Dummies Questions & Answers 2 08-12-2004 08:57 AM
cpio wipro fluid power UNIX for Dummies Questions & Answers 2 06-18-2001 10:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-27-2005
redlotus72 redlotus72 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 69
Error in cpio?

Hi,

I want to do incremental backup of my files,
I am using cpio for copy,
my code is as follows:

CPIO=/usr/bin/cpio

cd /home/arbuser/temp2/mscdr/tar/daily.0 && find . -print | $CPIO -dplm $DR_BACKUP_DIR/daily.1


I am unable to copy to daily.1

in commad prompt I am gettiung error:
cannot write in </home/arbuser/temp2/mscdr/tar/daily.1>

I have created daily.1 and gave permisstion attribute to 777, still I am gettinf same error.
  #2 (permalink)  
Old 06-27-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
You are doing a cpio -p which tries to copy a file tree rather than create a cpio archive. The -p option is clearly documented as needing a destination directory. You are giving it a destination file.
  #3 (permalink)  
Old 06-28-2005
redlotus72 redlotus72 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 69
Hi,

my Code :
echo copping daily.0 to daily1.0 using cpio
cd /home/arbuser/temp2/mscdr/tar/daily.0 && find . -print | $CPIO -pdl "$DR_BACKUP_DIR/daily.1/";
echo "Error==> " $?


O/p :

copping daily.0 to daily1.0 using cpio
cannot write in </home/arbuser/temp2/mscdr/tar/daily.1/>
Error==> 2

what is wrong in my code??
  #4 (permalink)  
Old 06-28-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
Most people backup to an archive file. If your destination is a writable directory, this should work. I tried your code on my system but with with different directories and it worked for me. Can you write into that directory? Try touching a file in it using the full path name, not a relative pathname. An unsearchable directory anywhere in that destination path could cause this. Other than that, it beats me.
Sponsored Links
Closed Thread

Bookmarks

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0