It is currently Mon, 25 Sep 2023 10:07:38 GMT

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


 Tue, 19 Oct 2004 20:45:00 GMT   
 Restore (file by file) and many named files
Perhaps using the interactive mode of restore will accomplish your task.
Use the "add" subcommand to select all of the files and the "delete"
command to remove the few files from you extraction list, then "extract".

man restore

Mark H. <> wrote in article

 Tue, 19 Oct 2004 23:10:59 GMT   
   [ 2 post ] 

Similar Threads

1. restore one file from a cpio backup of several files

2. please help: reverse file remove question (restore file)

3. restore one file from mksysb file?

4. Help: Need to restore files with white space in name

5. file by name restore too slooooooooooooooooow...

6. Restore from file name backups

7. Help: Need to restore files with white space in name

8. printing text file with file name

9. converting host file to named database files

10. Special file names in prototype file

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software