Koozali.org: home of the SME Server

[SOLVED] How do you use Selective File Restore?

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
[SOLVED] How do you use Selective File Restore?
« on: March 27, 2014, 11:25:56 PM »
I have tried using a filter, *.php to see what I get, this being a common wild card, but I get an error, "Internal Server Error".  If I leave the filter blank, I get an empty field of files.

I just need to restore one file.  I have checked the documents, how-to's and searched this forum and don't see any solutions.
« Last Edit: March 28, 2014, 11:31:56 PM by LANMonkey »

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do you use Selective File Restore?
« Reply #1 on: March 28, 2014, 02:16:56 AM »
I have posted about this problem before:

http://forums.contribs.org/index.php/topic,46340.0.html

I tried picking a known file, "MyFile.php" and also using the full path and I am still getting a blank list of files to restore.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: How do you use Selective File Restore?
« Reply #2 on: March 28, 2014, 02:44:19 AM »
Be aware there is a current Bug 7035 in relation to this scenario, also see Bug 6052
--
qui scribit bis legit

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do you use Selective File Restore?
« Reply #3 on: March 28, 2014, 05:14:55 PM »
Be aware there is a current Bug 7035 in relation to this scenario, also see Bug 6052

Here is the reported bug for 7035:

Quote
+++ This bug was initially created as a clone of Bug #6052 +++

Regarding the no files displayed in selective file restore, but being shown in Verify backup.

The verify backup uses dar and shows all the files in a backup

The selective file restore uses dar_manager -u which only lists files from the specified backup if they are the most recent that exists in the catalog.

When testing this feature out (both Vista CIFS and local USB) I could also see that a 'full' backup would mean that all previous backups give an empty list. However if between each test you delete some files then you will always get at least those files showing. It is not clearly described in the web panel or code.
The dar_manager manual page actually says that if dar_manager -u returns no files "the given archive is no more useful in database, and can be removed safely" We don't do this currently.

Here is a link to bug 6052, http://bugs.contribs.org/show_bug.cgi?id=6052.

I don't get it, are my backups useless?  Or is it just selective file restore?  What am I supposed to do to get my file back?

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: How do you use Selective File Restore?
« Reply #4 on: March 28, 2014, 08:10:28 PM »
Instead of trying to filter, have you just selected all backups and looked for the file or just select the folder to restore, I have found the later to work..

Of course all this relies on having a backup that was taken when the file was "live"

Purely as a test did you try the verify and confirmed the file is in the backup?

Also you have not provided any details of your SME version and update status or backup setup, purely for info and background.
--
qui scribit bis legit

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do you use Selective File Restore?
« Reply #5 on: March 28, 2014, 10:35:32 PM »
OK, this is all on SME 8.1.  I just now updated everything from the software installer.

The file was live for backups.

Since the update, I tried restoring the one file and was successful.

I still would like to know how to apply the filter.  When I left it blank, thinking it would bring up all the files, it just brought up an empty panel with no files listed.  What are the substitutions used for filtering?  I am familiar with Regular Expressions.  Does it use that?  Or something else?

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: How do you use Selective File Restore?
« Reply #6 on: March 28, 2014, 11:08:22 PM »
I can't offer an insight as I have not used the filtering as such..

As its dar based you may get some better info looking at the dar documentation - http://dar.linux.free.fr/doc/usage_notes.html#filtering
--
qui scribit bis legit

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do you use Selective File Restore?
« Reply #7 on: March 28, 2014, 11:31:25 PM »
OK, thanks for your help.  PROBLEM SOLVED.