Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: LANMonkey on March 24, 2016, 11:10:56 PM
-
I've had this problem before,
[Resolved] ... working filter example for workstation selective file restore (https://forums.contribs.org/index.php/topic,46340)
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?
-
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.
-
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
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?
-
No
-
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?
-
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.
-
LANMonkey
AFAIU selective restore is a file restore function. Obviously the file or files you select will be restored to their original location.
-
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.