Post by Alejandro HamannPost by msilveirabrTry the latest git version. Specifically you may try to download only the latest module/Restore/src/Restore/Controller/RestoreController.php
https://github.com/bareos/bareos-webui/commit/ee232a6f04eaf2a7c1084fee981f011ede000e8a#diff-cf6c9781ee7e4314efb79d66d53ae2f0
I was getting many "oops, something went wrong, probably too many files" popup errors. Replacing the RestoreController.php with the latest version fixed it.
Hello.
I comment on my experience this week.
I started with a new installation, from scratch, of Bareos on Debian 9.5 Stretch. I installed BareOS 18.2.4rc1-26.1 (from the Bareos repo), then I restore my previous configuration (I use multiple catalogs), and initialized the corresponding databases using PostgreSQL 9.6 (plus Apache2 and everything else necessary).
Well, with everything new, working and ready to start, I did a test backup of the C:\Windows folder of a Windows Server 2016 (running bareos-fd-17.2.4), with the idea of restoring individual files from the C:\Windows\WinSxS folder (as we know, it contains a lot of files and folders). But no luck; I got the damn message "oops, something went wrong, probably too many files".
In summary, bconsole can do a restore without problems; bareos-webui instead, no.
Regards!
Ok. Finally I was able to "solve" this problem.
Everything started when one was going to make a large backup (by large, I mean many files, such as the Windows folder, and more precisely the WinSxS subfolder, that as we know, has many many files). This backup is successful, but then when you want to restore an individual file with Bareos-Webui, which fails for some reason.
So, what do we do? We go to the old and beloved bconsole, of course (well, maybe it was more beloved bat, but since now it is deprecated in Bareos, we only have to love bconsole). Of course, bconsole build the list of files, restore the folder (a few seconds), and to execute the task.
In my example:
*restore client="hu-fs2-fd usando Generico-HU" jobid=21 restoreclient="hu-bs1-fd usando Generico-HU" where="/Bareos/restores/"
You have selected the following JobId: 21
Building directory tree for JobId(s) 21 ... +++++++++++++++++++++++++++++++++++++++++
179,310 files inserted into the tree.
You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.
cwd is: /
$ cd C:/Windows/WinSxS/
cwd is: C:/Windows/WinSxS/
$ cd x86_microsoft-windows-uxinit_31bf3856ad364e35_6.3.9600.16384_none_f1f5b52507cc33bf/
cwd is: C:/Windows/WinSxS/x86_microsoft-windows-uxinit_31bf3856ad364e35_6.3.9600.16384_none_f1f5b52507cc33bf/
$ add *
1 file marked.
$ done
Bootstrap records written to /var/lib/bareos/bareos-dir.restore.15.bsr
The job will require the following
Volume(s) Storage(s) SD Device(s)
===========================================================================
FileStorageTest-0021 File FileStorage
Volumes marked with "*" are online.
1 file selected to be restored.
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bareos/bareos-dir.restore.15.bsr
Where: /Bareos/restores/
Replace: Always
FileSet: LinuxAll
Backup Client: hu-fs2-fd usando Generico-HU
Restore Client: hu-bs1-fd usando Generico-HU
Format: Native
Storage: File
When: 2018-10-10 17:41:14
Catalog: Generico-HU
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=27
*messages
(here we see that everything was successful ... at least we hope so)
Then, back to Bareos-Webui, we go to "Restore", and select NO in the options "Merge all client filesets" and "Merge all related jobs to last full backup of selected backup job". And as if by magic, when expanding the folder C:/Windows/WinSxS/ (which has a lot of files and that could not be displayed before), well, you will see that the system works and works to the point where the web browser will inform once or twice that the process is taking too long and offer you wait or cancel (each time you are asked, select Wait... and calm, patience has its fruits).
Finally, instead of the message "oops, something went wrong, probably too many files", we will see all the files in the folder tree, and we can even restore using Bareos-Webui without problems.
Then, finally, the boss (who was resisting implement Bareos as Backup solution for not wanting to use a command-line interface), approve the use of Bareos. And everyone happy :-)
Regards!
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.