Hello World,
In my brother's company I make a backup of a Linux server and two
Windows clients. Bareos runs on the said Linux server. I started with
Bareos 15.x (Debian 8). A few weeks ago I updated the server to Debian 9
(Bareos 16.2.4).
Today I wanted to restore two files from a one of the Windows clients
(backed up with Bareos 15.x). The files should be written to the /tmp
directory of the Linux server. It looked all OK, but the files are just
not written: see the attached transcript.
I had restored a file earlier with Bareos 15.x and that worked. I tried
to restore some files from the Linux server and that worked too. I tried
to create the "C" drive and finally the complete path under
/tmp/bareos-restores with full write permissions to everyone on every
directory. I even touched the files to be restored and gave them full
write permissions.
Nothing helped; the files just did not appear (or had length 0 if I
touched them before the restore).
What did I do wrong?
TIA and best regards
Andreas
--
Andreas Tscharner [email protected]
------------------------------------------------------------------------
Der entscheidende Vorteil eines Chats gegenueber einem normalen Telefon-
anruf ist der, dass ersterer langsamer geht und mehr kostet (fuer den
lebenswichtigen Austausch von Informationen wie "hya folks", "C U
l8er" und ":-)") ... Aus Murphy's Computergesetzen
--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.
Connecting to Director server:9101
1000 OK: server-dir Version: 16.2.4 (01 July 2016)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: TscharnerMechanikCatalog
Using Catalog "TscharnerMechanikCatalog"
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): 6
The restored files will the most current backup
BEFORE the date you specify below.
Enter date as YYYY-MM-DD HH:MM:SS :2017-02-04 23:59:00
Defined Clients:
1: buero-pc2-fd
2: cad-pc-fd
3: server-fd
Select the Client (1-3): 1
Automatically selected FileSet: BueroPC2
+-------+-------+----------+----------------+---------------------+------------+
| jobid | level | jobfiles | jobbytes | starttime | volumename |
+-------+-------+----------+----------------+---------------------+------------+
| 373 | F | 3,544 | 11,077,034,934 | 2017-02-04 21:26:40 | Full-0032 |
+-------+-------+----------+----------------+---------------------+------------+
You have selected the following JobId: 373
Building directory tree for JobId(s) 373 ...
+++++++++++++++++++++++++++++++++++++++++++++++
3,337 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:
cwd is: C:/
$ cd Users/
cwd is: C:/Users/
$ cd bruno/
cwd is: C:/Users/bruno/
$ cd Documents/
cwd is: C:/Users/bruno/Documents/
$ cd BackupMaschinen/
cwd is: C:/Users/bruno/Documents/BackupMaschinen/
cd Maschine\ Dorf
cwd is: C:/Users/bruno/Documents/BackupMaschinen/Maschine Dorf/
cd Weekly
cwd is: C:/Users/bruno/Documents/BackupMaschinen/Maschine Dorf/Weekly/
$ add *
2 files marked.
$ lsmark
*FullDorf.BCK
*FullDorf.LST
$ done
Bootstrap records written to /var/lib/bareos/server-dir.restore.10.bsr
The job will require the following
Volume(s) Storage(s) SD Device(s)
===========================================================================
Full-0032 USBDisk ExternalDisk
Volumes marked with "*" are online.
2 files selected to be restored.
Using Catalog "TscharnerMechanikCatalog"
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bareos/server-dir.restore.10.bsr
Where: /tmp/bareos-restores
Replace: Always
FileSet: Linux All
Backup Client: buero-pc2-fd
Restore Client: buero-pc2-fd
Format: Native
Storage: USBDisk
When: 2017-09-10 15:09:29
Catalog: TscharnerMechanikCatalog
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=1096
*messages
10-Sep 15:09 server-dir JobId 1096: Start Restore Job
RestoreFiles.2017-09-10_15.09.34_33
10-Sep 15:09 server-dir JobId 1096: Using Device "ExternalDisk" to read.
10-Sep 15:09 server-sd JobId 1096: Ready to read from volume "Full-0032" on
device "ExternalDisk" (/mnt/BackupDisk).
10-Sep 15:09 server-sd JobId 1096: Forward spacing Volume "Full-0032" to
file:block 0:3445941229.
*messages
10-Sep 15:10 server-dir JobId 1096: Bareos server-dir 16.2.4 (01Jul16):
Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux unstable
(sid)
JobId: 1096
Job: RestoreFiles.2017-09-10_15.09.34_33
Restore Client: buero-pc2-fd
Start time: 10-Sep-2017 15:09:36
End time: 10-Sep-2017 15:10:10
Elapsed time: 34 secs
Files Expected: 2
Files Restored: 2
Bytes Restored: 388,190,320
Rate: 11417.4 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
*quit
You have new mail in /var/mail/root
root@server:/tmp/bareos-restores/C/Users/bruno/Documents/BackupMaschinen/Maschine
Dorf/Weekly# ls -l
total 0