Re: [bareos-users] restore is not restoring files
I decided to run bareos-dbcheck and found a issues over 41000 orphaned path records 8 orphaned Fileset records and 39 Restore Records. I then fixed the database using bareos-dbcheck. Still cannot restore the file. I also checked a different file with no spaces but still no luck. same bconsole output as before. I looked at /var/log/apache2/error.log and have a slightly different error message than before as follows: Tue Feb 11 16:40:34.942033 2020] [php7:notice] [pid 8905] [client 192.168.1.151:46774] PHP Notice: Undefined index: type in /usr/share/bareos-webui/module/Restore/src/Restore/Form/RestoreForm.php on line 91, referer: https://linux-server/bareos-webui/restore/?jobid=7204&client=BEE-XPS15-fd&restoreclient=&restorejob=&where=&fileset=&mergefilesets=0&mergejobs=0&limit=2000 the difference from before is that the IP address specified is now the one from which I am initiating the restore function. also jobid-7204 is where that file is located. Given it is line 91, does that mean somehow the info relevant to the BEE-XPS15-fd is somehow messed up? admitted, I really do not understand the program. On 2/11/20 3:59 PM, aeronex...@gmail.com wrote: I cannot get bconsole to restore the file either. (I have tried other files but no success there either). Bconsole will list it but it will not select it for download. below is my final attempt to get bconsole to restore the file. To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Find the JobIds of the most recent backup for a client 10: Find the JobIds for a backup for a client before a specified time 11: Enter a list of directories to restore for found JobIds 12: Select full restore to a specified Job date 13: Cancel Select item: (1-13): 2 Enter Filename (no path):CSMART Integration v03.docx +---++-+-+---+--+---+ | jobid | name | starttime | jobtype | jobstatus | jobfiles | jobbytes | +---++-+-+---+--+---+ | 7218 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-07 23:05:01 | B | T | 8578 | 904808687 | | 7204 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-05 23:05:02 | B | T | 6929 | 2004146945 | | 7197 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-04 23:05:11 | B | T | 5665 | 1648408939 | | 7193 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-03 23:05:02 | B | T | 9602 | 2342841806 | +---++-+-+---+--+---+ To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Find the JobIds of the most recent backup for a client 10: Find the JobIds for a backup for a client before a specified time 11: Enter a list of directories to restore for found JobIds 12: Select full restore to a specified Job date 13: Cancel Select item: (1-13): 7 Enter file names with paths, or < to enter a filename containing a list of file names with paths, and Terminate them with a blank line. Enter full filename: CSMART Integration v03.docx No database record found for: CSMART Integration v03.docx Also looking at web-ui, it shows a RestoreFiles - Full on 3 feb 2020 which I think is the day I did the upgrade but the last full backup was on 1 feb. I did not do a restore of files on 3 feb that I can remember of. The above show that it only goes back to 3 feb but should at least go back to 1 feb where the full backup occurred (in my opinion). I also ran .bvfs_update *.bvfs_update Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" not cl
Re: [bareos-users] restore is not restoring files
I cannot get bconsole to restore the file either. (I have tried other files but no success there either). Bconsole will list it but it will not select it for download. below is my final attempt to get bconsole to restore the file. To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Find the JobIds of the most recent backup for a client 10: Find the JobIds for a backup for a client before a specified time 11: Enter a list of directories to restore for found JobIds 12: Select full restore to a specified Job date 13: Cancel Select item: (1-13): 2 Enter Filename (no path):CSMART Integration v03.docx +---++-+-+---+--+---+ | jobid | name | starttime | jobtype | jobstatus | jobfiles | jobbytes | +---++-+-+---+--+---+ | 7218 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-07 23:05:01 | B | T | 8578 | 904808687 | | 7204 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-05 23:05:02 | B | T | 6929 | 2004146945 | | 7197 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-04 23:05:11 | B | T | 5665 | 1648408939 | | 7193 | /media/windows/Users/My Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx | 2020-02-03 23:05:02 | B | T | 9602 | 2342841806 | +---++-+-+---+--+---+ To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Find the JobIds of the most recent backup for a client 10: Find the JobIds for a backup for a client before a specified time 11: Enter a list of directories to restore for found JobIds 12: Select full restore to a specified Job date 13: Cancel Select item: (1-13): 7 Enter file names with paths, or < to enter a filename containing a list of file names with paths, and Terminate them with a blank line. Enter full filename: CSMART Integration v03.docx No database record found for: CSMART Integration v03.docx Also looking at web-ui, it shows a RestoreFiles - Full on 3 feb 2020 which I think is the day I did the upgrade but the last full backup was on 1 feb. I did not do a restore of files on 3 feb that I can remember of. The above show that it only goes back to 3 feb but should at least go back to 1 feb where the full backup occurred (in my opinion). I also ran .bvfs_update *.bvfs_update Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" not clear it did anything to me. there are no messages in the /var/log/bareos/bareos/log files for the attempts to restore the file either. Thanks for looking at this. On 2/11/20 2:28 AM, Andreas Rogge wrote: Hi, just to find out whether this is an issue with the webui or the core: could you run that restore in bconsole and see if it works? Thank you! Best Regards, Andreas Am 10.02.20 um 22:38 schrieb aeronex...@gmail.com: Additional information on my issue of not restoring the file. Looked at apache2 error.log file and found [Mon Feb 10 16:11:38.842648 2020] [php7:notice] [pid 16230] [client 192.168.1.174:44696] PHP Notice: Undefined index: type in /usr/share/bareos-webui/module/Restore/src/Restore/Form/RestoreForm.php on line 91, referer: https://linux-server/bareos-webui/restore/?jobid=7232&client=BEE-XPS15-fd&restoreclient=&restorejob=&where=&fileset=&mergefilesets=0&mergejobs=0&limit=2000 Line 91 has 89 // Client 90 if(isset($restore_params['client'])) { 91 if($restore_params['type'] == "client") { also 192.168.1.174 is the ip of my windows client when my computer is booted to windows. the windows client has no bareos client definiton and my lap