Koozali.org: home of the SME Server

[SOLVED] How to apply a filter to a Selective Restore from Workstation

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
I've had this problem before,

[Resolved] ... working filter example for workstation selective file restore

I want to restore an old iBay and I am trying the Selective Restore from Workstation option in the Backup and Restore area.

I see,

Currently, files will be restored from : 192.168.1.xx/mnt/myserver/backup//myhost.mydomain.com

I select a backup to restore from and I try /home/e-smith/files/myibay/*

But in the next screen I see nothing but a scroll bar with no files to select.  I think maybe it takes time to collect files and give it ten minutes, but still nothing.

How do I filter the Selective Restore in order to restore a single directory?
« Last Edit: March 25, 2016, 11:50:20 PM by LANMonkey »

Offline ricks1950

  • **
  • 40
  • +0/-0
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #1 on: March 25, 2016, 02:49:33 AM »
The syntax of your search is the problem:

/home/e-smith/files/myibay/*

will find no files to restore

home/e-smith/files/myibay

will find your ibay and all its files.  The leading slash is getting you.  The linked problem shows the correct syntax, by the way.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #2 on: March 25, 2016, 04:20:46 AM »
The syntax of your search is the problem:

/home/e-smith/files/myibay/*

will find no files to restore

home/e-smith/files/myibay

will find your ibay and all its files.  The leading slash is getting you.  The linked problem shows the correct syntax, by the way.

Right you are.

https://forums.contribs.org/index.php/topic,46340.msg227108.html#msg227108

Quote
did you try 'root/*'?

AFAIR you don't need the / at the beginning

...

Although "doesn't need" is not quite the same as "will not yield results at all".

That post also seems to suggest the "*" can be used.  Is there a language that can be used to filter like regex or GREP?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #3 on: March 25, 2016, 08:06:52 AM »
No

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #4 on: March 25, 2016, 06:48:48 PM »
OK, I have had some success.   A trailing slash, ".../ibays/" or ".../ibays" both seem to work.

I was finally able to access the files I want, but only if I apply "All backups" from the drop down menu in the Selective File Restore page.  I cannot choose the backup I want, only one of the backups yields files from the filter -- not the backup I want.  If I choose any of the other backups, I cannot get any files with the filter.  I was once able to do a full restore from one of these backups once.

So I selected the directory (no trailing slash) I wanted to restore, hit restore, and got the following message back,

Restore in progress
The following files and directories have been restored:
Cannot restore any file, nothing done
Restore complete


What does that mean and what should I do to correct it?

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #5 on: March 25, 2016, 11:38:11 PM »
Tried something different. 

In the last selection, I used .../ibays/myibay with no trailing slash and the first item in the returned list was that item which I assumed was a directory.  When I selected this item, thinking it selected the whole directory, I got the above message.

I tried it again with the trailing slash and got only files, nothing that looked like a directory.  I manually selected all the files -- selected the first and then scrolled to the bottom and selected the last and all the files become selected.  Now when I click perform, I get my files restored.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #6 on: March 26, 2016, 12:50:47 AM »
LANMonkey

AFAIU selective restore is a file restore function. Obviously the file or files you select will be restored to their original location.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How to apply a filter to a Selective Restore from Workstation
« Reply #7 on: March 26, 2016, 01:42:21 AM »
LANMonkey

AFAIU selective restore is a file restore function. Obviously the file or files you select will be restored to their original location.

Right.  But I am led to believe that it is possible to select a directory instead of having to select all the files in the directory.  This is where I had problems.