Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Backup is giving me input/output error Post 61099 by JPigford on Friday 28th of January 2005 09:19:07 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
FSVS - Backup HOWTO(5)						       fsvs						    FSVS - Backup HOWTO(5)

NAME
HOWTO: Backup - This document is a step-by-step explanation how to do backups using FSVS. This document is a step-by-step explanation how to do backups using FSVS. Preparation If you're going to back up your system, you have to decide what you want to have stored in your backup, and what should be left out. Depending on your system usage and environment you first have to decide: o Do you only want to backup your data in /home? o Less storage requirements o In case of hardware crash the OS must be set up again o Do you want to keep track of your configuration in /etc? o Very small storage overhead o Not much use for backup/restore, but shows what has been changed o Or do you want to backup your whole installation, from / on? o Whole system versioned, restore is only a few commands o Much more storage space needed - typically you'd need at least a few GB free space. The next few moments should be spent thinking about the storage space for the repository - will it be on the system harddisk, a secondary or an external harddisk, or even off-site? Note: If you just created a fresh repository, you probably should create the 'default' directory structure for subversion - trunk, branches, tags; this layout might be useful for your backups. The URL you'd use in fsvs would go to trunk. Possibly you'll have to take the available bandwidth into your considerations; a single home directory may be backed up on a 56k modem, but a complete system installation would likely need at least some kind of DSL or LAN. Note: If this is a production box with sparse, small changes, you could take the initial backup on a local harddisk, transfer the directory with some media to the target machine, and switch the URLs. A fair bit of time should go to a small investigation which file patterns and paths you not want to back-up. o Backup files like *.bak, *~, *.tmp, and similar o History files: .sh-history and similar in the home-directories o Cache directories: your favourite browser might store many MB of cached data in you home-directories o Virtual system directories, like /proc and /sys, /dev/shmfs. Telling FSVS what to do Given $WC as the working directory - the base of the data you'd like backed up (/, /home), and $URL as a valid subversion URL to your (already created) repository path. Independent of all these details the first steps look like these: cd $WC fsvs urls $URL Now you have to say what should be ignored - that'll differ depending on your needs/wishes. fsvs ignore './**~' './**.tmp' './**.bak' fsvs ignore ./proc/ ./sys/ ./tmp/ fsvs ignore ./var/tmp/ ./var/spool/lpd/ fsvs ignore './var/log/*.gz' fsvs ignore ./var/run/ /dev/pts/ fsvs ignore './etc/*.dpkg-dist' './etc/*.dpkg-new' fsvs ignore './etc/*.dpkg-old' './etc/*.dpkg-bak' Note: /var/run is for transient files; I've heard reports that reverting files there can cause problems with running programs. Similar for /dev/pts - if that's a devpts filesystem, you'll run into problems on update or revert - as FSVS won't be allowed to create entries in this directory. Now you may find that you'd like to have some files encrypted in your backup - like /etc/shadow, or your .ssh/id_* files. So you tell fsvs to en/decrypt these files: fsvs propset fsvs:commit-pipe 'gpg -er {your backup key}' /etc/shadow /etc/gshadow fsvs propset fsvs:update-pipe 'gpg -d' /etc/shadow /etc/gshadow Note: This are just examples. You'll probably have to exclude some other paths and patterns from your backup, and mark some others as to-be- filtered. The first backup fsvs commit -m 'First commit.' That's all there is to it! Further use and maintenance The further usage is more or less the commit command from the last section. When do you have to do some manual work? o When ignore patterns change. o New filesystems that should be ignored, or would be ignored but shouldn't o You find that your favorite word-processor leaves many *.segv files behind, and similar things o If you get an error message from fsvs, check the arguments and retry. In desperate cases (or just because it's quicker than debugging yourself) ask on dev [at] fsvs.tigris.org. Restoration in a working system Depending on the circumstances you can take different ways to restore data from your repository. o 'fsvs export' allows you to just dump some repository data into your filesystem - eg. into a temporary directory to sort things out. o Using 'fsvs revert' you can get older revisions of a given file, directory or directory tree inplace. o Or you can do a fresh checkout - set an URL in an (empty) directory, and update to the needed revision. o If everything else fails (no backup media with fsvs on it), you can use subversion commands (eg. export) to restore needed parts, and update the rest with fsvs. Recovery for a non-booting system In case of a real emergency, when your harddisks crashed or your filesystem was eaten and you have to re-partition or re-format, you should get your system working again by o booting from a knoppix or some other Live-CD (with FSVS on it), o partition/format as needed, o mount your harddisk partitions below eg. /mnt, o and then recovering by $ cd /mnt $ export FSVS_CONF=/etc/fsvs # if non-standard $ export FSVS_WAA=/var/spool/fsvs # if non-standard $ fsvs checkout -o softroot=/mnt If somebody asks really nice I'd possibly even create a recovery command that deduces the softroot parameter from the current working directory. For more information please take a look at Using an alternate root directory. Feedback If you've got any questions, ideas, wishes or other feedback, please tell us in the mailing list users [at] fsvs.tigris.org. Thank you! Author Generated automatically by Doxygen for fsvs from the source code. Version trunk:2424 11 Mar 2010 FSVS - Backup HOWTO(5)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy