Koozali.org: home of the SME Server

Restoring Individual Files from Tape

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Restoring Individual Files from Tape
« on: March 25, 2004, 08:37:40 PM »
Hi All,

Can anyone suggest ways of making it easy for
users to restore indvidual files from a flexbackup ?

Something like a script that asks the user for the dir/filename that they need ?

I thought of using maybe plink and a script that takes
the variables from the user.

This has to be as simple as possible as they are mainly word users.

Thanks !
"If you don't know what you want, you end up with a lot you don't."

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Restoring Individual Files from Tape
« Reply #1 on: March 26, 2004, 07:03:47 PM »
I used WinSCP and a script file called restore_now which contains the following example from the howto ;

/bin/mt -f /dev/nst0 rewind
/bin/mt -f /dev/nst0 fsf 1
/usr/bin/flexbackup -extract -flist /shared/restore.list
/bin/mt -f /dev/nst0 rewind

restore.list and resore_now both live in a shared folder accessible from the Wintop (ie on the samba share)

The users edit restore.list to contain the /dirs/filenames they want restoring using WinSCP then choose the WinSCP execute command to run restore_now - after which they quit WinSCP.

Several coffess later the /dirs/files are restored to the shared folder.

If they cant remember the filename they can look in Backup_Log which is also a Samba share and is specified in flexbackup.conf as being the location to write the backup log files.

The only thing I wish I could do now is speed it all up as it takes two hours to complete even if the files are restored right at the beginning.

If anyone knows how to get flexbackup to quit as soon as its restored please let me know !
"If you don't know what you want, you end up with a lot you don't."