Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the backup command

Status
Not open for further replies.

aixlurker

Technical User
Jun 20, 2002
39
PH
is it possible to backup (by names, and by i-nodes) 2 or more files on a single tape cartridge? how? i tried to use the command:


for x in /var /tmp
do
find $x -print | backup -ivqf /dev/rmt0
done

then execute:

restore -Tvqf /dev/rmt0 > restore.out to check the output


what i see was only the /tmp files being archieved onto the tape.

how should it be done?

thanks,
 
hi

the problem your having is that you should use the no rewind device rmt0.1
rather than rmt0 , which rewinds back to beginning hence you are only seeing /tmp

then to view /tmp if using the no rewind device rmt0.1

you forward the tape one assuming it is rewound i.e.

tctl -f /dev/rmt0 rewind
tctl -f /dev/rmt0.1 fsf 1


hth
 
Why not try this:

cd /
find ./var ./tmp -print | backup -ivqf/dev/rmt0

Which will create a list of ALL files in /var and /tmp and their subdirectories and pipe that list to backup which will create a SINGLE backup image on the tape.

Then to determine what's on the tape do:

restore -Tqf/dev/rmt0 >restore.out

The files then are 1) backed up; 2) restorable either individually, in groups by wildcard, or in their entirety.

The change to the root directory and the usage of the ./ allows you to restore file(s) to a different directory should you need to.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top