Koozali.org: home of the SME Server

Restore Now Wont Restore?

Adrian S

Restore Now Wont Restore?
« on: September 12, 2002, 12:26:47 AM »
Hello Everyone

Hopefully someone can help me with this problem.

I Use flexbackup to tape which works ok on E-smith 5.1.2  (HP DAT 24gig)

However i have recently installed a small rpm called restore now-0.0.1-2  from http://myezserver.com. I thought id use this because i have no real experience with linux scripts. The problem is that it wont restore i get the following message.

Trying "mt defblksize" instead of "mt setblk"
Error setting block size
Neither of these commands worked:
mt -f /dev/nst0 setblk 0
mt -f /dev/nst0 defblksize 0

I am not sure what is happening here i would expect to see more detail?

Only once did it attempt to restore a directory but not the contents? (dont have the error message for that sorry) but the log files told me the files exist?

This is the command i am using in restore now: /home/esmith/files/ibays/data/files/backup.pst

Backing up seems to be no problem but restoring is a problem maybe i need to change some script somewhere.

Can someone please help
thanks in advance

Adrian

Darrell May

Re: Restore Now Wont Restore?
« Reply #1 on: September 12, 2002, 03:25:35 AM »

Darrell May

Re: Restore Now Wont Restore?
« Reply #2 on: September 12, 2002, 11:59:22 AM »
Adrian S wrote:
> This is the command i am using in restore now:
> /home/esmith/files/ibays/data/files/backup.pst

Typo on esmith.  Should be:

/home/e-smith/files/ibays/data/files/backup.pst

Darrell

Adrian S

Re: Restore Now Wont Restore?
« Reply #3 on: September 12, 2002, 01:11:40 PM »
Thank you Darrell

I will give it a try, And thanks for pointing out the type ;)

Kind regards.

Adrian S

Re: Restore Now Wont Restore?
« Reply #4 on: September 12, 2002, 05:24:22 PM »
Darrell Have tried what you suggested but i get what you see below?  Can anyone help ?  

Tnx

[root@Server rpms]# flexbackup -extract backup.pst

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
Error: file "backup.pst" not found at /usr/bin/flexbackup line 2060.
[root@Server rpms]# flexbackup -compare

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| Trying "mt defblksize" instead of "mt setblk"
Error setting block size
Neither of these commands worked:
  mt -f /dev/nst0 setblk 0
  mt -f /dev/nst0 defblksize 0
[root@Server rpms]#

Todd Pearsall

Re: Restore Now Wont Restore?
« Reply #5 on: September 12, 2002, 06:03:43 PM »
Is backup.pst the file you want to restore or the file containing a list of the files you need to restore?  I believe it should be a file containing a list of all the files you want to restore from the backup.

Just want to clarify.  

Assuming it is the list of files be sure to give the full path in the command and I think you need the "-files" parameter:
# flexbackup -extract -files /home/e-smith/files/ibays/data/files/backup.pst

If /home/e-smith/files/ibays/data/files/backup.pst is in fact the file you want to restore and you just need some help make the filelist, respond to the forum and we can give you some instructions.

- Todd

Adrian S

Re: Restore Now Wont Restore?
« Reply #6 on: September 12, 2002, 08:05:51 PM »
Hi Todd

Thank You for getting in touch.

The backup.pst is the actual file i want to restore.

This is the path i am using.

flexbackup -extract -files  /home/e-smith/files/ibays/data/files/NEFU/backup.pst

When you say make a file list todd what do you mean exactly?  

again Todd thank's for your help.

regards

Darrell May

Re: Restore Now Wont Restore?
« Reply #7 on: September 13, 2002, 04:40:01 AM »
My guess is you are not following the HowTo.   It gives clear instructions for positioning the tape correclty and performing selective restores.  Also, are you positive your file was backed up and is on tape.  Use the HowTo to list all files on tape.

Darrell

Adrian S

Re: Restore Now Wont Restore?
« Reply #8 on: September 13, 2002, 02:48:11 PM »
I am being told that there is 7 gig's worth of data on the tape, not only that the backup log tells me that there is data on the Tapes?

The only problem i am having is restoring a sinle file only. I suspect if i used the total restore function in e-smith server manager it would probably work. But that's not the problem it's simply that i can't for some reason use the restore now utility to restore a file?

I have checked the how to list and i am using the flexbackup -extract -files command. Apart from my original typo i have confirmed that the route to the folder/share i want to restore to is correct.  My command line is as follows.

flexbackup -extract -files /home/e-smith/files/data/files/NEFU/backup.pst

I just keep getting this message from the log file?

[root@Server rpms]# flexbackup -extract backup.pst

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
Error: file "backup.pst" not found at /usr/bin/flexbackup line 2060.
[root@Server rpms]# flexbackup -compare

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| Trying "mt defblksize" instead of "mt setblk"
Error setting block size
Neither of these commands worked:
mt -f /dev/nst0 setblk 0
mt -f /dev/nst0 defblksize 0
[root@Server rpms]#


This tells me my syntax is ok.


Or the following?



Trying "mt defblksize" instead of "mt setblk"
Error setting block size
Neither of these commands worked:
mt -f /dev/nst0 setblk 0
mt -f /dev/nst0 defblksize 0

I suspect it is something to do with how restore is talking to the device. how can i test this? is there a difference between nst0 and st0?

Thanks everyone for you input very much appreciated.


Regards

Todd Pearsall

Re: Restore Now Wont Restore?
« Reply #9 on: September 13, 2002, 06:31:49 PM »
Darrell is way stronger in this stuff then I am, but from reading the how-to I think you're using the command wrong.

To restore "/home/e-smith/files/ibays/data/files/NEFU/backup.pst" you need to make a file that lists the file(s) you want to extract.  In Darrell's how-to in section "How to perform a selective -extract" it talks about "create a file which contains a list of all files/directories to be restored"

Try this at the command line:
1) create a file "/root/extract-list"
   # pico /root/extract-list
2) in the editor add the path and filename you want to extract
   /home/e-smith/files/ibays/data/files/NEFU/backup.pst
3) save and exit
   Ctrl-X, Y, enter
4) prepare tape and restore (from how-to)
    # cd /
    # /bin/mt -f /dev/nst0 rewind
    # /bin/mt -f /dev/nst0 fsf 1
    # /usr/bin/flexbackup -extract -files /root/extract-list
    # /bin/mt -f /dev/nst0 rewind

The comamnd "/usr/bin/flexbackup -extract -files /root/extract-list" reads list of file(s) to restore from the file you just created.

- Todd



flexbackup -extract -files /home/e-smith/files/ibays/data/files/NEFU/backup.pst

Adrian S

Re: Restore Now Wont Restore?
« Reply #10 on: September 13, 2002, 11:47:04 PM »
Ahhh Right I think me understands at last (The penny drops).

Thank you Todd your a complete star,  I am not creating a list of any type.I will give it a go.

Thanks to both of you Darrell & Todd


Regards