
Restore (file by file) and many named files
Hi All
We are running AIX 4.3.3.
Currently we backup (file by file) our directory structures using an
overnight script along the lines of:
find ./directory1 -print |sort > /tmp/x
find ./directory2 -print |sort >> /tmp/x
backup -i -q -f /dev/rmt0 < /tmp/x
This works wells and we can easily restore individual files, directories and
everything all in one go.
However we had a situation earlier this week where I needed to restore a
couple of hundred files of the directory structure, but exclude ten or so
files at the bottom level. The files I don't want to restore were large
(1Gb. each) so 'mv' them and 'mv' them back isn't an option.
For example:
Wanted to restore ./directory1 and its descendants, but not
./directory1/x/x/x and not ./directory1/x/x/y etc.
Ideally what I want to do is edit the files I don't want restoring out of
/tmp/x (my file list) and then do something along the lines of:
restore -xvf /dev/rmt0 < /tmp/x
But this doesn't work, instead it trys to restore all files.
Can anyone give me an idea of how to get this working.
Thanks in advance.
Mark