I just set up Bacula with a couple test hosts. Backups and restores are working 
for a test UNIX host. Backups for a test Windows 2012r2 host work. Restores of 
small files to the Windows host work. But restores of large files fail. 

Here’s a restore of a small file (192 bytes): 

# bconsole
Connecting to Director localhost:9101
1000 OK: 103 core-prod-bkp-3.ucsc.edu-dir Version: 9.0.6 (20 November 2017)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

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): 5
Defined Clients:
     1: apm-dev-tools-1
     2: bac-test-12r2
     3: core-prod-bkp-3
     4: core-prod-bkp-3.ucsc.edu-fd
Select the Client (1-4): 2
Automatically selected FileSet: WindowsStandardDirective
+-------+-------+----------+----------------+---------------------+------------+
| jobid | level | jobfiles | jobbytes       | starttime           | volumename |
+-------+-------+----------+----------------+---------------------+------------+
|    10 | F     |  212,928 | 22,851,436,475 | 2018-01-05 19:00:03 | Vol-0001   |
|    10 | F     |  212,928 | 22,851,436,475 | 2018-01-05 19:00:03 | Vol-0002   |
|    42 | D     |    3,520 |  6,605,441,137 | 2018-01-12 19:00:03 | Vol-0002   |
|    46 | I     |    2,402 |  3,425,386,771 | 2018-01-13 19:00:03 | Vol-0002   |
|    50 | I     |      274 |  3,063,170,936 | 2018-01-14 19:00:03 | Vol-0002   |
|    54 | I     |      267 |  2,973,663,925 | 2018-01-15 19:00:03 | Vol-0002   |
|    59 | I     |      255 |  2,950,254,100 | 2018-01-16 19:00:03 | Vol-0002   |
|    63 | I     |      338 |  2,926,837,546 | 2018-01-17 19:00:03 | Vol-0002   |
|    67 | I     |      570 |  3,675,542,094 | 2018-01-18 19:00:02 | Vol-0003   |
|    67 | I     |      570 |  3,675,542,094 | 2018-01-18 19:00:02 | Vol-0002   |
|    86 | I     |      374 |  3,270,550,109 | 2018-01-22 19:00:03 | Vol-0003   |
+-------+-------+----------+----------------+---------------------+------------+
You have selected the following JobIds: 10,42,46,50,54,59,63,67,86

Building directory tree for JobId(s) 10,42,46,50,54,59,63,67,86 ...  
+++++++++++++++++++++++++++++++++++++++++++
185,212 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: /
$ ls
C:/
D:/
$ cd C:/
cwd is: C:/
$ cd Users
cwd is: C:/Users/
$ cd admin.jjendrea
cwd is: C:/Users/admin.jjendrea/
$ mark ntuser.ini
1 file marked.
$ done
Bootstrap records written to 
/var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.2.bsr

The Job will require the following (*=>InChanger):
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
   
    Vol-0001                  FileChgr1-Dev1            FileChgr1               
 

Volumes marked with "*" are in the Autochanger.


1 file selected to be restored.

Using Catalog "MyCatalog"
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.2.bsr
Where:           /tmp/bacula-restores
Replace:         Always
FileSet:         Testing Set
Backup Client:   bac-test-12r2
Restore Client:  bac-test-12r2
Storage:         FileChgr1-Dev1
When:            2018-01-23 16:28:14
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): mod
Parameters to modify:
     1: Level
     2: Storage
     3: Job
     4: FileSet
     5: Restore Client
     6: When
     7: Priority
     8: Bootstrap
     9: Where
    10: File Relocation
    11: Replace
    12: JobId
    13: Plugin Options
Select parameter to modify (1-13): 9
Please enter the full path prefix for restore (/ for none): C:/WINDOWS/TEMP
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.2.bsr
Where:           C:/WINDOWS/TEMP
Replace:         Always
FileSet:         Testing Set
Backup Client:   bac-test-12r2
Restore Client:  bac-test-12r2
Storage:         FileChgr1-Dev1
When:            2018-01-23 16:28:14
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=88
*status dir
core-prod-bkp-3.ucsc.edu-dir Version: 9.0.6 (20 November 2017) 
x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
Daemon started 22-Jan-18 14:10, conf reloaded 22-Jan-2018 14:10:21
 Jobs: run=6, running=0 mode=0,0
 Heap: heap=0 smbytes=104,606 max_bytes=40,510,470 bufs=560 max_bufs=692
 Res: njobs=5 nclients=3 nstores=2 npools=3 ncats=1 nfsets=11 nscheds=7

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Volume
===================================================================================
Incremental    Backup    10  23-Jan-18 19:00    core-prod-bkp-3    Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    bac-test-12r2      Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    apm-dev-tools-1    Vol-0003
Full           Backup    11  23-Jan-18 23:10    BackupCatalog      Vol-0003
====

Running Jobs:
Console connected at 23-Jan-18 16:24
No Jobs running.
====

Terminated Jobs:
 JobId  Level      Files    Bytes   Status   Finished        Name 
====================================================================
    77  Incr           0         0   Error    21-Jan-18 19:30 core-prod-bkp-3
    80  Full           0         0   Error    21-Jan-18 23:10 BackupCatalog
    81  Restore        0         0   Cancel   22-Jan-18 13:52 RestoreFiles
    82  Restore        1       813   OK       22-Jan-18 13:52 RestoreFiles
    83  Restore        1         0   Error    22-Jan-18 15:30 RestoreFiles
    84  Incr          35    880.4 K  OK       22-Jan-18 19:00 core-prod-bkp-3
    85  Incr           7    141.8 K  OK       22-Jan-18 19:00 apm-dev-tools-1
    86  Incr         374    3.270 G  OK       22-Jan-18 19:08 bac-test-12r2
    87  Full           0         0   Error    22-Jan-18 23:10 BackupCatalog
    88  Restore        1       192   OK       23-Jan-18 16:29 RestoreFiles

====
You have messages.
*messages
23-Jan 16:29 core-prod-bkp-3.ucsc.edu-dir JobId 88: Start Restore Job 
RestoreFiles.2018-01-23_16.29.19_11
23-Jan 16:29 core-prod-bkp-3.ucsc.edu-dir JobId 88: Using Device 
"FileChgr1-Dev1" to read.
23-Jan 16:29 core-prod-bkp-3-sd JobId 88: Ready to read from volume "Vol-0001" 
on File device "FileChgr1-Dev1" (/backups).
23-Jan 16:29 core-prod-bkp-3-sd JobId 88: Forward spacing Volume "Vol-0001" to 
addr=48075329182
23-Jan 16:29 core-prod-bkp-3-sd JobId 88: Elapsed time=00:00:01, Transfer 
rate=344  Bytes/second
23-Jan 16:29 core-prod-bkp-3.ucsc.edu-dir JobId 88: Bacula 
core-prod-bkp-3.ucsc.edu-dir 9.0.6 (20Nov17):
  Build OS:               x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
  JobId:                  88
  Job:                    RestoreFiles.2018-01-23_16.29.19_11
  Restore Client:         bac-test-12r2
  Start time:             23-Jan-2018 16:29:21
  End time:               23-Jan-2018 16:29:25
  Files Expected:         1
  Files Restored:         1
  Bytes Restored:         192
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK



But try a couple larger files (a few MB):
*restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

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): 5
Defined Clients:
     1: apm-dev-tools-1
     2: bac-test-12r2
     3: core-prod-bkp-3
     4: core-prod-bkp-3.ucsc.edu-fd
Select the Client (1-4): 2
Automatically selected FileSet: WindowsStandardDirective
+-------+-------+----------+----------------+---------------------+------------+
| jobid | level | jobfiles | jobbytes       | starttime           | volumename |
+-------+-------+----------+----------------+---------------------+------------+
|    10 | F     |  212,928 | 22,851,436,475 | 2018-01-05 19:00:03 | Vol-0001   |
|    10 | F     |  212,928 | 22,851,436,475 | 2018-01-05 19:00:03 | Vol-0002   |
|    42 | D     |    3,520 |  6,605,441,137 | 2018-01-12 19:00:03 | Vol-0002   |
|    46 | I     |    2,402 |  3,425,386,771 | 2018-01-13 19:00:03 | Vol-0002   |
|    50 | I     |      274 |  3,063,170,936 | 2018-01-14 19:00:03 | Vol-0002   |
|    54 | I     |      267 |  2,973,663,925 | 2018-01-15 19:00:03 | Vol-0002   |
|    59 | I     |      255 |  2,950,254,100 | 2018-01-16 19:00:03 | Vol-0002   |
|    63 | I     |      338 |  2,926,837,546 | 2018-01-17 19:00:03 | Vol-0002   |
|    67 | I     |      570 |  3,675,542,094 | 2018-01-18 19:00:02 | Vol-0003   |
|    67 | I     |      570 |  3,675,542,094 | 2018-01-18 19:00:02 | Vol-0002   |
|    86 | I     |      374 |  3,270,550,109 | 2018-01-22 19:00:03 | Vol-0003   |
+-------+-------+----------+----------------+---------------------+------------+
You have selected the following JobIds: 10,42,46,50,54,59,63,67,86

Building directory tree for JobId(s) 10,42,46,50,54,59,63,67,86 ...  
+++++++++++++++++++++++++++++++++++++++++++
185,212 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:/Users/admin.jjendrea/Downloads
cwd is: C:/Users/admin.jjendrea/Downloads/
$ mark "bacula-enterprise-win64-7.4.4 (1).exe"
1 file marked.
$ cd C:/
cwd is: C:/
$ cd "Backup Test"
cwd is: C:/Backup Test/
$ mark MySQLDatabase.sql
1 file marked.
$ done
Bootstrap records written to 
/var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.3.bsr

The Job will require the following (*=>InChanger):
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
   
    Vol-0001                  FileChgr1-Dev1            FileChgr1               
 
    Vol-0002                  FileChgr1-Dev1            FileChgr1               
 

Volumes marked with "*" are in the Autochanger.


2 files selected to be restored.

Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.3.bsr
Where:           /tmp/bacula-restores
Replace:         Always
FileSet:         Testing Set
Backup Client:   bac-test-12r2
Restore Client:  bac-test-12r2
Storage:         FileChgr1-Dev1
When:            2018-01-23 16:33:42
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): mod
Parameters to modify:
     1: Level
     2: Storage
     3: Job
     4: FileSet
     5: Restore Client
     6: When
     7: Priority
     8: Bootstrap
     9: Where
    10: File Relocation
    11: Replace
    12: JobId
    13: Plugin Options
Select parameter to modify (1-13): 9
Please enter the full path prefix for restore (/ for none): C:/WINDOWS/TEMP
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/db/bacula/core-prod-bkp-3.ucsc.edu-dir.restore.3.bsr
Where:           C:/WINDOWS/TEMP
Replace:         Always
FileSet:         Testing Set
Backup Client:   bac-test-12r2
Restore Client:  bac-test-12r2
Storage:         FileChgr1-Dev1
When:            2018-01-23 16:33:42
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=89
*status dir
core-prod-bkp-3.ucsc.edu-dir Version: 9.0.6 (20 November 2017) 
x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
Daemon started 22-Jan-18 14:10, conf reloaded 22-Jan-2018 14:10:21
 Jobs: run=6, running=1 mode=0,0
 Heap: heap=0 smbytes=139,934 max_bytes=40,510,470 bufs=620 max_bufs=692
 Res: njobs=5 nclients=3 nstores=2 npools=3 ncats=1 nfsets=11 nscheds=7

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Volume
===================================================================================
Incremental    Backup    10  23-Jan-18 19:00    core-prod-bkp-3    Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    bac-test-12r2      Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    apm-dev-tools-1    Vol-0003
Full           Backup    11  23-Jan-18 23:10    BackupCatalog      Vol-0003
====

Running Jobs:
Console connected at 23-Jan-18 16:24
 JobId  Type Level     Files     Bytes  Name              Status
======================================================================
    89  Rest Rest          0         0  RestoreFiles      is running
====

Terminated Jobs:
 JobId  Level      Files    Bytes   Status   Finished        Name 
====================================================================
    77  Incr           0         0   Error    21-Jan-18 19:30 core-prod-bkp-3
    80  Full           0         0   Error    21-Jan-18 23:10 BackupCatalog
    81  Restore        0         0   Cancel   22-Jan-18 13:52 RestoreFiles
    82  Restore        1       813   OK       22-Jan-18 13:52 RestoreFiles
    83  Restore        1         0   Error    22-Jan-18 15:30 RestoreFiles
    84  Incr          35    880.4 K  OK       22-Jan-18 19:00 core-prod-bkp-3
    85  Incr           7    141.8 K  OK       22-Jan-18 19:00 apm-dev-tools-1
    86  Incr         374    3.270 G  OK       22-Jan-18 19:08 bac-test-12r2
    87  Full           0         0   Error    22-Jan-18 23:10 BackupCatalog
    88  Restore        1       192   OK       23-Jan-18 16:29 RestoreFiles

====
You have messages.
*messages
23-Jan 16:34 core-prod-bkp-3.ucsc.edu-dir JobId 89: Start Restore Job 
RestoreFiles.2018-01-23_16.34.05_12
23-Jan 16:34 core-prod-bkp-3.ucsc.edu-dir JobId 89: Using Device 
"FileChgr1-Dev1" to read.
23-Jan 16:34 core-prod-bkp-3-sd JobId 89: Ready to read from volume "Vol-0001" 
on File device "FileChgr1-Dev1" (/backups).
23-Jan 16:34 core-prod-bkp-3-sd JobId 89: Forward spacing Volume "Vol-0001" to 
addr=48075329182
*status dir
core-prod-bkp-3.ucsc.edu-dir Version: 9.0.6 (20 November 2017) 
x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
Daemon started 22-Jan-18 14:10, conf reloaded 22-Jan-2018 14:10:21
 Jobs: run=6, running=1 mode=0,0
 Heap: heap=0 smbytes=140,156 max_bytes=40,510,470 bufs=620 max_bufs=692
 Res: njobs=5 nclients=3 nstores=2 npools=3 ncats=1 nfsets=11 nscheds=7

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Volume
===================================================================================
Incremental    Backup    10  23-Jan-18 19:00    core-prod-bkp-3    Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    bac-test-12r2      Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    apm-dev-tools-1    Vol-0003
Full           Backup    11  23-Jan-18 23:10    BackupCatalog      Vol-0003
====

Running Jobs:
Console connected at 23-Jan-18 16:24
 JobId  Type Level     Files     Bytes  Name              Status
======================================================================
    89  Rest Rest          0         0  RestoreFiles      is running
====

Terminated Jobs:
 JobId  Level      Files    Bytes   Status   Finished        Name 
====================================================================
    77  Incr           0         0   Error    21-Jan-18 19:30 core-prod-bkp-3
    80  Full           0         0   Error    21-Jan-18 23:10 BackupCatalog
    81  Restore        0         0   Cancel   22-Jan-18 13:52 RestoreFiles
    82  Restore        1       813   OK       22-Jan-18 13:52 RestoreFiles
    83  Restore        1         0   Error    22-Jan-18 15:30 RestoreFiles
    84  Incr          35    880.4 K  OK       22-Jan-18 19:00 core-prod-bkp-3
    85  Incr           7    141.8 K  OK       22-Jan-18 19:00 apm-dev-tools-1
    86  Incr         374    3.270 G  OK       22-Jan-18 19:08 bac-test-12r2
    87  Full           0         0   Error    22-Jan-18 23:10 BackupCatalog
    88  Restore        1       192   OK       23-Jan-18 16:29 RestoreFiles

====
You have messages.

*messages
23-Jan 16:39 core-prod-bkp-3-sd JobId 89: Error: bsock.c:649 Write error 
sending 65540 bytes to client:128.114.115.72:9103: ERR=Broken pipe
23-Jan 16:39 core-prod-bkp-3-sd JobId 89: Fatal error: read.c:176 Error sending 
data to Client. ERR=Broken pipe
23-Jan 16:39 core-prod-bkp-3-sd JobId 89: Elapsed time=00:05:25, Transfer 
rate=202  Bytes/second
23-Jan 16:39 core-prod-bkp-3-sd JobId 89: Error: bsock.c:537 Socket has 
errors=1 on call to client:128.114.115.72:9103
*status dir
core-prod-bkp-3.ucsc.edu-dir Version: 9.0.6 (20 November 2017) 
x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
Daemon started 22-Jan-18 14:10, conf reloaded 22-Jan-2018 14:10:21
 Jobs: run=7, running=0 mode=0,0
 Heap: heap=0 smbytes=147,727 max_bytes=40,510,470 bufs=603 max_bufs=692
 Res: njobs=5 nclients=3 nstores=2 npools=3 ncats=1 nfsets=11 nscheds=7

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Volume
===================================================================================
Incremental    Backup    10  23-Jan-18 19:00    core-prod-bkp-3    Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    bac-test-12r2      Vol-0003
Incremental    Backup    10  23-Jan-18 19:00    apm-dev-tools-1    Vol-0003
Full           Backup    11  23-Jan-18 23:10    BackupCatalog      Vol-0003
====

Running Jobs:
Console connected at 23-Jan-18 16:24
No Jobs running.
====

Terminated Jobs:
 JobId  Level      Files    Bytes   Status   Finished        Name 
====================================================================
    80  Full           0         0   Error    21-Jan-18 23:10 BackupCatalog
    81  Restore        0         0   Cancel   22-Jan-18 13:52 RestoreFiles
    82  Restore        1       813   OK       22-Jan-18 13:52 RestoreFiles
    83  Restore        1         0   Error    22-Jan-18 15:30 RestoreFiles
    84  Incr          35    880.4 K  OK       22-Jan-18 19:00 core-prod-bkp-3
    85  Incr           7    141.8 K  OK       22-Jan-18 19:00 apm-dev-tools-1
    86  Incr         374    3.270 G  OK       22-Jan-18 19:08 bac-test-12r2
    87  Full           0         0   Error    22-Jan-18 23:10 BackupCatalog
    88  Restore        1       192   OK       23-Jan-18 16:29 RestoreFiles
    89  Restore        1         0   Error    23-Jan-18 16:55 RestoreFiles

====
You have messages.
*
23-Jan 16:53 bac-test-12r2.ucsc.edu JobId 89: Error: lib/bsock.c:918 Read error 
from Storage daemon:core-prod-bkp-3.ucsc.edu:9103: ERR=Input/output error
23-Jan 16:53 bac-test-12r2.ucsc.edu JobId 89: Fatal error: filed/restore.c:479 
Data record error. ERR=Input/output error
23-Jan 16:55 core-prod-bkp-3.ucsc.edu-dir JobId 89: Error: Bacula 
core-prod-bkp-3.ucsc.edu-dir 9.0.6 (20Nov17):
  Build OS:               x86_64-unknown-freebsd10.3 freebsd 10.3-RELEASE-p24
  JobId:                  89
  Job:                    RestoreFiles.2018-01-23_16.34.05_12
  Restore Client:         bac-test-12r2
  Start time:             23-Jan-2018 16:34:07
  End time:               23-Jan-2018 16:55:12
  Files Expected:         2
  Files Restored:         1
  Bytes Restored:         0
  Rate:                   0.0 KB/s
  FD Errors:              1
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Restore Error ***


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to