|
@@ -154,8 +154,10 @@ _borg-create() {
|
|
|
'--noctime[do not store ctime into archive]' \
|
|
|
'--nobirthtime[do not store birthtime (creation date) into archive]' \
|
|
|
'--nobsdflags[deprecated, use --noflags instead]' \
|
|
|
+ '--noacls[do not read and store ACLs into archive]' \
|
|
|
+ '--noxattrs[do not read and store xattrs into archive]' \
|
|
|
'--noflags[do not read and store flags (e.g. NODUMP, IMMUTABLE) into archive]' \
|
|
|
- '--files-cache=[operate files cache in MODE. default: ctime,size,inode]:MODE:(ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime disabled)' \
|
|
|
+ '--files-cache=[operate files cache in MODE. default: ctime,size,inode]:MODE:(ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime size disabled)' \
|
|
|
'--read-special[open and read block and char device files as well as FIFOs as if they were regular files]' \
|
|
|
$common_options \
|
|
|
':ARCHIVE: _borg_repository_or_archive -a -p' \
|
|
@@ -200,6 +202,7 @@ _borg-debug() {
|
|
|
'put-obj:put object to repository'
|
|
|
'delete-obj:delete object from repository'
|
|
|
'refcount-obj:show refcount for object from repository'
|
|
|
+ 'dump-hints:dump repository hints'
|
|
|
'convert-profile:convert Borg profile to Python profile'
|
|
|
)
|
|
|
_describe -t commands 'command' debug_commands && ret=0
|
|
@@ -265,6 +268,12 @@ _borg-debug() {
|
|
|
': :_borg_repository' \
|
|
|
'*:ID (hex object):' && ret=0
|
|
|
;;
|
|
|
+ (dump-hints)
|
|
|
+ _arguments -s -w -S : \
|
|
|
+ $common_options \
|
|
|
+ ': :_borg_repository' \
|
|
|
+ '*:PATH:_files' && ret=0
|
|
|
+ ;;
|
|
|
(convert-profile)
|
|
|
_arguments -s -w -S : \
|
|
|
$common_options \
|
|
@@ -312,6 +321,7 @@ _borg-diff() {
|
|
|
'--numeric-owner[only obey numeric user and group identifiers]' \
|
|
|
'--same-chunker-params[override check of chunker parameters]' \
|
|
|
'--sort[sort the output lines by file path]' \
|
|
|
+ '--json-lines[format output as JSON Lines]' \
|
|
|
$common_exclude_options \
|
|
|
$common_options \
|
|
|
':ARCHIVE1: _borg_repository_or_archive -a' \
|
|
@@ -346,6 +356,8 @@ _borg-extract() {
|
|
|
'(-n --dry-run)'{-n,--dry-run}'[do not actually change any files]' \
|
|
|
'--numeric-owner[only obey numeric user and group identifiers]' \
|
|
|
'--nobsdflags[deprecated, use --noflags instead]' \
|
|
|
+ '--noacls[do not extract/set ACLs]' \
|
|
|
+ '--noxattrs[do not extract/set xattrs]' \
|
|
|
'--noflags[do not extract/set flags (e.g. NODUMP, IMMUTABLE)]' \
|
|
|
'--stdout[write all extracted data to stdout]' \
|
|
|
'--sparse[create holes in output sparse file from all-zero chunks]' \
|
|
@@ -782,6 +794,14 @@ _borg_parameters() {
|
|
|
_description values expl 'value'
|
|
|
compadd "$expl[@]" YES NO && ret=0
|
|
|
;;
|
|
|
+ (LIBC)
|
|
|
+ _wanted libraries expl 'library' \
|
|
|
+ compadd - ${^=LD_LIBRARY_PATH:-/usr/lib /usr/local/lib}/lib*.(a|so*)(:t:fr:s/lib//) && ret=0
|
|
|
+ ;;
|
|
|
+ (SELFTEST)
|
|
|
+ _description values expl 'value'
|
|
|
+ compadd "$expl[@]" disabled && ret=0
|
|
|
+ ;;
|
|
|
(WORKAROUNDS)
|
|
|
_wanted workarounds expl 'workaround' _sequence compadd - basesyncfile && ret=0
|
|
|
;;
|