Backup is giving me input/output error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backup is giving me input/output error
# 1  
Old 01-28-2005
Backup is giving me input/output error

I've been successfully running a daily cron script to backup certain things on my server but just recently I started getting input/output errors for everything. For each directory the script tries to backup I now get this:

cp: accessing `/mnt/backup/**dir**/': Input/output error
# 2  
Old 01-28-2005
Hi,

Can you please send me your backup scipt so that i can suggest you any solution.

Regards,
shafi
# 3  
Old 01-28-2005
#!/bin/bash
cp -r -f /home/dir1/public_html/ /mnt/backup/dir1/
cp -r -f /var/lib/mysql/ /mnt/backup/database
cp -r -f /home/dir2/public_html/ /mnt/backup/dir2
cp -r -f /home/dir3/public_html/ /mnt/backup/dir3
cp -r -f /home/dir4/public_html/userdata/users_index.txt /mnt/backup/dir4/public_html/
exit
# 4  
Old 01-28-2005
hi,

/mnt/backup dir is on another disk or the same disk ?.
if its on the other disk the other disk may be damaged .

regards,
una
# 5  
Old 01-28-2005
/mnt/backup is a seperate NAS backup disk provided by my dedicated server provider.
# 6  
Old 01-28-2005
Can you post the output of this command:

df -k /mnt/backup
# 7  
Old 01-28-2005
Quote:
Originally Posted by RTM
Can you post the output of this command:

df -k /mnt/backup
df: `/mnt/backup': Input/output error
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Input/output error

Hi issue with red hat and san. I had a LUN shared to me from an oracle storage I am able to see it and the size. ~]# multipath -ll mpathe (3600144f0e984617b00005b466bd70014) dm-3 SUN,ZFS Storage 7430 size=10T features='0' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=1... (0 Replies)
Discussion started by: goya
0 Replies

2. Shell Programming and Scripting

giving input without manual intervention

Hi all, I am looking for a specific requirement. I am trying to create a wrapper over a set of shell scripts. Some shell scripts wait for user inputs. These inputs may not be same format. And will be spread across multiple files. In short a set of scripts are going to be run on another set... (1 Reply)
Discussion started by: krk1729
1 Replies

3. Shell Programming and Scripting

Giving Input in a script

Hi, I am a newbie to scripting. I want to know something..Is there any way that I can do this? Here is the thing.. there are so many printer queues in which i need to change a certain option.. am using the hppi utility and i need to modify the printer configuration individually going to each... (3 Replies)
Discussion started by: aksijain
3 Replies

4. UNIX for Dummies Questions & Answers

How to remove/prevent Input/output error

Hi I have a new hdd installed ,and sometimes if i start a session or ftp download while downloading sometimes it creates a ./filename.type Input/output errorso in that case i can-not overwrite ,rename ,remove ,or place a file with the same name on that dir. How to prevent this and is there... (3 Replies)
Discussion started by: brain!ac
3 Replies

5. UNIX for Dummies Questions & Answers

Standard error output to Pipe input - solved

Hi, I want to check a particular word is in standard error output or not. Can I acheive it in single command? For example, Delete file_name 2>error.log cat error.log Output: XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX Successfully deleted XXXXXXXXXXXXXXXXX where delete is... (2 Replies)
Discussion started by: poova
2 Replies

6. UNIX for Dummies Questions & Answers

AWK command giving wrong input

Hi all, I have a problem with qwk command. i have to check process status and for that i am using command prstat -mvL 1 1 and it gives me the entire output but when i use this command with awk like this: prstat -mvL 1 1 | awk -F" " '{print $1,$15}' to get first and 15th arguments. ... (3 Replies)
Discussion started by: usha rao
3 Replies

7. Solaris

PZ help :configure: error: cannot find output from flex; giving up

While installing amanda server,i got the following error ## checking lex output file root... configure: error: cannot find output from flex; giving up. when i execute # which lex i got /usr/ccs/bin/lex setting the pathg does not work too After this i tried intalling flex in my /opt... (0 Replies)
Discussion started by: bullet350
0 Replies

8. AIX

v3fshelper: There is an input or output error

Hello, I encountered a never-seen-before error message soon after the extension of a file system on an AIX 5.2: $ sudo chfs -a size=+1G /filesystemtest v3fshelper: /dev/lvfilesystemtest: There is an input or output error. No error reported by errpt, file system correctly extended. Can... (2 Replies)
Discussion started by: padawan75
2 Replies

9. Shell Programming and Scripting

Giving input to a c++ file

My C++ program creates a nxn matrix with given value. For e.g if the input is 10 it will creates a matrix of 10x10 now what i want is the script should run program and give input values in a variation of 1000. Say first matrix of 1000 then 2000 , 3000 ..... 10000. I tried using for loop but unable... (2 Replies)
Discussion started by: tonyaim83
2 Replies

10. Shell Programming and Scripting

Giving input through script

Script 1.ksh ========= /home/adw/a.ksh << ** a b Script 1.ksh is working fine even without ending "**" Script 2.ksh ========= if then /home/adw/a.ksh << ** a b fi But the script 2.ksh is giving error "syntax error : `<<' unmatched". Is it bcoz of fi. (1 Reply)
Discussion started by: radhika03
1 Replies
Login or Register to Ask a Question