fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
0df6fa791
master
1function __fish_obnam_nosubcommand 2if __fish_seen_subcommand_from add-key backup client-keys clients diff dump-repo force-lock forget fsck\ 3 generations genids help help-all kdirstat list-errors list-formats list-keys list-toplevels\ 4 ls mount nagios-last-backup-age remove-client remove-key restore verify 5return 1 6end 7return 0 8end 9 10complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a add-key -d'Add a key to the repository' 11complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a backup -d'Backup data to repository' 12complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a client-keys -d'List clients and their keys in the repository' 13complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a clients -d'List clients using the repository' 14complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a diff -d'Show difference between two generations' 15complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a dump-repo -d'Dump (some) data structures from a repository' 16complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a force-lock -d'Force a locked repository to be open' 17complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a forget -d'Forget (remove) specified backup generations' 18complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a fsck -d'Verify internal consistency of backup repository' 19complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a generations -d'List backup generations for client' 20complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a genids -d'List generation ids for client' 21complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a help -d'Print help' 22complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a help-all -d'Print help, including hidden subcommands' 23complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a kdirstat -d'List contents of a generation in kdirstat cache format' 24complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a list-errors -d'List error codes and explanations' 25complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a list-formats -d'List available repository formats' 26complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a list-keys -d'List keys and repository toplevels they are used in' 27complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a list-toplevels -d'List repository toplevel directories and their keys' 28complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a ls -d'List contents of a generation' 29complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a mount -d'Mount a backup repository as a FUSE filesystem' 30complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a nagios-last-backup-age -d'Check if the most recent generation is recent enough' 31complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a remove-client -d'Remove client and its key from repository' 32complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a remove-key -d'Remove a key from the repository' 33complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a restore -d'Restore some or all files from a generation' 34complete -c obnam --no-files --condition __fish_obnam_nosubcommand -a verify -d'Verify that live data and backed up data match' 35 36complete -c obnam --no-files -l always-restore-setuid -d'Restore setuid/setgid bits in restored files' 37complete -c obnam --no-files -l no-always-restore-setuid -d'Do not restore setuid/setgid bits in restored files' 38complete -c obnam --no-files -l checksum-algorithm -a'sha512 sha224 sha256 sha384' -d'Use CHECKSUM algorithm' 39complete -c obnam --no-files -l client-name -a'$hostname' -d'Name of client' 40complete -c obnam --no-files -l compress-with -a'none deflate' -d'Compress repository with' 41complete -c obnam --no-files -l critical-age -d'For --nagios-last-backup-age: maximum age' 42complete -c obnam --no-files -l dump-repo-file-metadata -d'Dump metadata about files' 43complete -c obnam --no-files -l no-dump-repo-file-metadata -d'Do not dump metadata about files' 44complete -c obnam --no-files -l generate-manpage -d'Generate man page' 45complete -c obnam --no-files -l generation -d'Which generation to restore' 46complete -c obnam --no-files -s h -l help -d'Show this help message and exit' 47complete -c obnam --no-files -l keep -d'Policy for what generations to keep when forgetting.' 48complete -c obnam --no-files -l lock-timeout -d'Wait TIMEOUT seconds for an existing lock' 49complete -c obnam -l output -d'Write output to FILE instead of STDOUT' 50complete -c obnam --no-files -l pretend -l dry-run -l no-act -d'Do not actually change anything' 51complete -c obnam --no-files -l no-pretend -l no-dry-run -l no-no-act -d'Actually commit changes' 52complete -c obnam --no-files -l quiet -d'Show only errors, no progress updates' 53complete -c obnam --no-files -l no-quiet -d'Show errors and progress updates' 54complete -c obnam -s r -l repository -d'Name of backup repository' 55complete -c obnam --no-files -l repository-format -a'6 green-albatross-20160813' -d'Use FORMAT for new repositories' 56complete -c obnam -l to -d'Where to restore / mount to' 57complete -c obnam --no-files -l verbose -d'Be more verbose' 58complete -c obnam --no-files -l no-verbose -d'Do not be verbose' 59complete -c obnam --no-files -l verify-randomly -d'Verify N files randomly from the backup' 60complete -c obnam --no-files -l version -d'Show version number and exit' 61complete -c obnam -l warn-age -d'For nagios-last-backup-age: maximum age' 62 63# Backing up 64complete -c obnam --no-files -l checkpoint -d'Make a checkpoint after a given SIZE' 65complete -c obnam --no-files -l deduplicate -a'fatalist never verify' -d'Deduplicate mode' 66complete -c obnam -l exclude -d'REGEXP for pathnames to exclude' 67complete -c obnam --no-files -l exclude-caches -d'Exclude directories tagged as cache' 68complete -c obnam --no-files -l no-exclude-caches -d'Include directories tagged as cache' 69complete -c obnam -l exclude-from -d'Read exclude patterns from FILE' 70complete -c obnam --no-files -l include -d'REGEXP for pathnames to include, even if matches --exclude' 71complete -c obnam --no-files -l leave-checkpoints -d'Leave checkpoint generations at the end of backup' 72complete -c obnam --no-files -l no-leave-checkpoints -d'Omit checkpoint generations at the end of backup' 73complete -c obnam --no-files -l one-file-system -d'Do not follow mount points' 74complete -c obnam --no-files -l no-one-file-system -d'Follow mount points' 75complete -c obnam -l root -d'What to backup' 76complete -c obnam --no-files -l small-files-in-btree -d'Put small files directly into the B-tree' 77complete -c obnam --no-files -l no-small-files-in-btree -d'No not put small files into the B-tree' 78 79# Configuration files and settings 80complete -c obnam -l config -d'Add FILE to config files' 81complete -c obnam --no-files -l dump-config -d'Write out the current configuration' 82complete -c obnam --no-files -l dump-setting-names -d'Write out setting names' 83complete -c obnam --no-files -l help-all -d'Show all options' 84complete -c obnam --no-files -l list-config-files -d'List config files' 85complete -c obnam --no-files -l no-default-configs -d'Clear list of configuration files to read' 86 87# Development of Obnam itself 88complete -c obnam --no-files -l crash-limit -d'Artificially crash the program after COUNTER files' 89complete -c obnam --no-files -l pretend-time -d'Pretend it is TIMESTAMP' 90complete -c obnam --no-files -l testing-fail-matching -d'Simulate failures for files that match REGEXP' 91complete -c obnam -l trace -d'FILENAME pattern for trace debugging' 92 93# Encryption 94complete -c obnam --no-files -l encrypt-with -d'PGP key with which to encrypt' 95complete -c obnam -l gnupghome -d'Home directory for GPG' 96complete -c obnam --no-files -l key-details -d'Show additional user IDs' 97complete -c obnam --no-files -l no-key-details -d'Do not show additional user IDs' 98complete -c obnam --no-files -l keyid -d'PGP key id' 99complete -c obnam --no-files -l symmetric-key-bits -d'Size of symmetric key' 100complete -c obnam --no-files -l weak-random -d'Use /dev/urandom instead of /dev/random' 101complete -c obnam --no-files -l no-weak-random -d'Use default /dev/random' 102 103# Integrity checking (fsck) 104complete -c obnam --no-files -l fsck-fix -d'fsck should try to fix problems' 105complete -c obnam --no-files -l no-fsck-fix -d'fsck should not try to fix problems' 106complete -c obnam --no-files -l fsck-ignore-chunks -d'Ignore chunks when checking integrity' 107complete -c obnam --no-files -l no-fsck-ignore-chunks -d'Check chunks when checking integrity' 108complete -c obnam --no-files -l fsck-ignore-client -d'Do not check data for client NAME' 109complete -c obnam --no-files -l fsck-last-generation-only -d'Check only the last generation' 110complete -c obnam --no-files -l no-fsck-last-generation-only -d'Check all generations' 111complete -c obnam --no-files -l fsck-rm-unused -d'fsck should remove unused chunks' 112complete -c obnam --no-files -l no-fsck-rm-unused -d'fsck should remove unused chunks' 113complete -c obnam --no-files -l fsck-skip-checksums -d'Do not check checksums of files' 114complete -c obnam --no-files -l no-fsck-skip-checksums -d'Check checksums of files' 115complete -c obnam --no-files -l fsck-skip-dirs -d'Do not check directories' 116complete -c obnam --no-files -l no-fsck-skip-dirs -d'Check directories' 117complete -c obnam --no-files -l fsck-skip-files -d'Do not check files' 118complete -c obnam --no-files -l no-fsck-skip-files -d'Check files' 119complete -c obnam --no-files -l fsck-skip-generations -d'Do not check any generations' 120complete -c obnam --no-files -l no-fsck-skip-generations -d'Check all generations' 121complete -c obnam --no-files -l fsck-skip-per-client-b-trees -d'Do not check per-client B-trees' 122complete -c obnam --no-files -l no-fsck-skip-per-client-b-trees -d'Check per-client B-trees' 123complete -c obnam --no-files -l fsck-skip-shared-b-trees -d'Do not check shared B-trees' 124complete -c obnam --no-files -l no-fsck-skip-shared-b-trees -d'Check shared B-trees' 125 126# Logging 127complete -c obnam -l log -a syslog -d'Write log to FILE or syslog' 128complete -c obnam --no-files -l log-keep -d'Keep last N logs (10)' 129complete -c obnam --no-files -l log-level -a'debug info warning error critical fatal' -d'Log at LEVEL' 130complete -c obnam --no-files -l log-max -d'Rotate logs larger than SIZE' 131complete -c obnam --no-files -l log-mode -d'Set permissions of logfiles to MODE' 132 133# Mounting with FUSE 134complete -c obnam --no-files -l fuse-opt -d'Options to pass to FUSE' 135 136# Performance 137complete -c obnam --no-files -l dump-memory-profile -a'none simple meliae heapy' -d'Make memory profiling dumps using METHOD' 138complete -c obnam --no-files -l memory-dump-interval -d'Make memory profiling dumps at SECONDS' 139 140# Performance tweaking 141complete -c obnam --no-files -l chunk-size -d'Size of chunks of file data' 142complete -c obnam --no-files -l chunkids-per-group -d'Encode NUM chunk ids per group' 143complete -c obnam --no-files -l idpath-bits -d'Chunk id level size' 144complete -c obnam --no-files -l idpath-depth -d'Depth of chunk id mapping' 145complete -c obnam --no-files -l idpath-skip -d'Chunk id mapping lowest bits skip' 146complete -c obnam --no-files -l lru-size -d'Size of LRU cache for B-tree nodes' 147complete -c obnam --no-files -l node-size -d'Size of B-tree nodes on disk' 148complete -c obnam --no-files -l upload-queue-size -d'Length of upload queue for B-tree nodes' 149 150# Repository format green-albatross 151complete -c obnam --no-files -l chunk-bag-size -d'Approx max SIZE of bag combining chunk objects' 152complete -c obnam --no-files -l chunk-cache-size -d'In-memory cache SIZE for chunk objects' 153complete -c obnam --no-files -l dir-bag-size -d'Approx max SIZE of bags combining dir objects' 154complete -c obnam --no-files -l dir-cache-size -d'In-memory cache SIZE for dir objects' 155 156# SSH/SFTP 157complete -c obnam --no-files -l pure-paramiko -d'Use only paramiko, no openssh' 158complete -c obnam --no-files -l no-pure-paramiko -d'Use openssh if available' 159complete -c obnam -l ssh-command -d'Executable to be used instead of "ssh"' 160complete -c obnam --no-files -l ssh-host-keys-check -a'no yes ask ssh-config' -d'ssh host key check' 161complete -c obnam -l ssh-key -d'Use FILENAME as the ssh RSA key' 162complete -c obnam -l ssh-known-hosts -a'\\~/.ssh/known_hosts' -d'FILENAME of the known_hosts file'