View Issue Details

IDProjectCategoryView StatusLast Update
0000673bareos-core[All Projects] directorpublic2016-07-15 14:47
ReporterShodanAssigned Topstorz 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version15.2.2 
Fixed in Version 
Summary0000673: restore command does not select multiply filesets in non-interactive mode
DescriptionThe restore job does not work, when client has more then one filesets, using restore command in non-interactive mode, like echo "restore client=test01-fd restoreclient=test01-fd restorejob=Restore_test where=/srv/bareos-restore/test01-fd select current done yes" | bconsole -n

Ideally, the restore job should restore all client's filesets without prompt.
Steps To ReproduceRun restore job

~# echo "restore client=test01-fd restoreclient=test-01-fd restorejob=Restore_test where=/srv/bareos-restore/test01-01-fd select current done yes" | bconsole -n
Connecting to Director test-dir-01:9101
1000 OK: test-dir-01 Version: 15.2.4 (09 June 2016)
Enter a period to cancel a command.
restore client=test-01-fd restoreclient=test-01-fd restorejob=Restore_test where=/srv/bareos-restore/test-01-fd select current done yes
Using Catalog "MyCatalog"
The defined FileSet resources are:
     1: DBM-BKP
     2: TEST-WEB-01
Select FileSet resource (1-2):

And waiting for prompt...
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

pstorz

pstorz

2016-07-14 17:10

administrator   ~0002319

How about specifying fileset= in the command line?
Shodan

Shodan

2016-07-15 13:34

reporter   ~0002320

Last edited: 2016-07-15 13:48

View 2 revisions

With fileset=somefileset is fine, but the script does not know filesets names (the names are unique). Perhaps fileset=all would be perfect option in this situation, where all is all filesets for current job.

pstorz

pstorz

2016-07-15 14:33

administrator   ~0002321

So do you want to provide a patch?
Shodan

Shodan

2016-07-15 14:47

reporter   ~0002322

Sorry, I'm not C programmer, just IMHO.

Issue History

Date Modified Username Field Change
2016-07-11 11:23 Shodan New Issue
2016-07-14 17:10 pstorz Note Added: 0002319
2016-07-14 17:10 pstorz Assigned To => pstorz
2016-07-14 17:10 pstorz Status new => feedback
2016-07-15 13:34 Shodan Note Added: 0002320
2016-07-15 13:34 Shodan Status feedback => assigned
2016-07-15 13:48 Shodan Note Edited: 0002320 View Revisions
2016-07-15 14:33 pstorz Note Added: 0002321
2016-07-15 14:47 Shodan Note Added: 0002322