View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000866 | bareos-core | General | public | 2017-10-19 17:50 | 2019-12-18 15:25 |
Reporter | oleg.cherkasov | Assigned To | pstorz | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | AMD64 | OS | FreeBSD | OS Version | 11.1 |
Product Version | 16.2.7 | ||||
Summary | 0000866: implement `Where` directive in Job/JobDef for making relative path backups | ||||
Description | It 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. | ||||
Tags | No tags attached. | ||||
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. |
|
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 |
2019-12-18 15:25 | arogge | Status | resolved => closed |