View Issue Details

IDProjectCategoryView StatusLast Update
0000866bareos-core[All Projects] Generalpublic2017-10-26 16:16
Reporteroleg.cherkasovAssigned Topstorz 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
PlatformAMD64OSFreeBSDOS Version11.1
Product Version16.2.7 
Target VersionFixed in Version 
Summary0000866: implement `Where` directive in Job/JobDef for making relative path backups
DescriptionIt is a request to implement 'Where' directive in Backup Job/JobDef, so to have something similar to TAR relative directory option.
For example if I want to TAR a /data directory so I may do it differently:

tar -cf /tmp/myarchive.tar /data

or I may do it with relative path:

tar -cf /tmp/myarchive.tar -C / data

It would be nice to have something like -C option for Backup in Bareos as a part of Job definition (or JobDefs).

It would be indispensable to have such option for snapshot based filesystems like ZFS and may be Btrfs. Creating snapshot and temporarily mounting would be good solution for heavily used filesystems. Relative path backup would help to restore directly into primary snapshot or filesystem with out extra efforts.
TagsNo tags attached.
bareos-master: impact
bareos-master: 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

2017-10-26 16:16

administrator   ~0002809

Hello Oleg,

that is already possible, please check the docs for the "strip path" directive:

http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-142113

strippath=<integer>

This option will cause integer paths to be stripped from the front of the full path/filename being backed up. This can be useful if you are migrating data from another vendor or if you have taken a snapshot into some subdirectory. This directive can cause your filenames to be overlayed with regular backup data, so should be used only by experts and with great care.

Issue History

Date Modified Username Field Change
2017-10-19 17:50 oleg.cherkasov New Issue
2017-10-26 16:16 pstorz Note Added: 0002809
2017-10-26 16:16 pstorz Status new => resolved
2017-10-26 16:16 pstorz Resolution open => fixed
2017-10-26 16:16 pstorz Assigned To => pstorz