2023-07-02 02:46:54 +00:00
<!DOCTYPE html>
< html lang = "en" dir = "ltr" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" >
2024-11-20 06:08:16 +00:00
< meta name = "generator" content = "Hugo 0.135.0" >
< meta name = "generator" content = "Relearn 5.16.2" >
2023-07-02 02:46:54 +00:00
< meta name = "description" content = "" >
< title > CLI - A tool for commands< / title >
< link href = "/cli/index.xml" rel = "alternate" type = "application/rss+xml" title = "CLI - A tool for commands" >
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how - to - use -->
2024-11-20 06:08:16 +00:00
< link href = "/css/fontawesome-all.min.css?1732082585" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/css/fontawesome-all.min.css?1732082585" rel = "stylesheet" > < / noscript >
< link href = "/css/nucleus.css?1732082585" rel = "stylesheet" >
< link href = "/css/auto-complete.css?1732082585" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/css/auto-complete.css?1732082585" rel = "stylesheet" > < / noscript >
< link href = "/css/perfect-scrollbar.min.css?1732082585" rel = "stylesheet" >
< link href = "/css/fonts.css?1732082585" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/css/fonts.css?1732082585" rel = "stylesheet" > < / noscript >
< link href = "/css/theme.css?1732082585" rel = "stylesheet" >
< link href = "/css/theme-auto.css?1732082585" rel = "stylesheet" id = "variant-style" >
< link href = "/css/variant.css?1732082585" rel = "stylesheet" >
< link href = "/css/print.css?1732082585" rel = "stylesheet" media = "print" >
< link href = "/css/ie.css?1732082585" rel = "stylesheet" >
< script src = "/js/url.js?1732082585" > < / script >
< script src = "/js/variant.js?1732082585" > < / script >
2023-07-02 02:46:54 +00:00
< script >
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
window.index_js_url="/index.search.js";
var root_url="/";
var baseUri=root_url.replace(/\/$/, '');
// translations
window.T_Copy_to_clipboard = 'Copy to clipboard';
window.T_Copied_to_clipboard = 'Copied to clipboard!';
window.T_Copy_link_to_clipboard = 'Copy link to clipboard';
window.T_Link_copied_to_clipboard = 'Copied link to clipboard!';
window.T_No_results_found = 'No results found for \u0022{0}\u0022';
window.T_N_results_found = '{1} results found for \u0022{0}\u0022';
// some further base stuff
var baseUriFull='http:\/\/example.org/';
window.variants & & variants.init( [ 'auto' ] );
< / script >
< / head >
< body class = "mobile-support html" data-url = "/cli/index.html" >
< div id = "body" class = "default-animation" >
< div id = "sidebar-overlay" > < / div >
< div id = "toc-overlay" > < / div >
2024-11-20 06:08:16 +00:00
< nav id = "topbar" class = "highlightable" >
2023-07-02 02:46:54 +00:00
< div >
< div id = "breadcrumbs" >
< span id = "sidebar-toggle-span" >
< a href = "#" id = "sidebar-toggle" class = "topbar-link" title = 'Menu (CTRL+ALT+n)' > < i class = "fas fa-bars fa-fw" > < / i > < / a >
< / span >
< span id = "toc-menu" title = 'Table of Contents (CTRL+ALT+t)' > < i class = "fas fa-list-alt fa-fw" > < / i > < / span >
< span class = "links" >
CLI
< / span >
< / div >
< div class = "default-animation progress" >
2024-11-20 06:08:16 +00:00
< div class = "toc-wrapper" > < nav id = "TableOfContents" >
2023-07-02 02:46:54 +00:00
< ul >
2024-11-20 06:08:16 +00:00
< li > < a href = "#backy" > Backy< / a > < / li >
< / ul >
< ul >
< li > < a href = "#backup" > backup< / a > < / li >
< li > < a href = "#cron" > cron< / a > < / li >
< li > < a href = "#exec" > exec< / a > < / li >
< li > < a href = "#version" > version< / a > < / li >
< li > < a href = "#list" > list< / a > < / li >
2023-07-02 02:46:54 +00:00
< / ul >
< / nav >
< / div >
< / div >
< / div >
< / nav >
< main id = "body-inner" class = "highlightable default" tabindex = "-1" >
< div class = "flex-block-wrapper" >
< article class = "default" >
2024-11-20 06:08:16 +00:00
< header class = "headline" >
< / header >
2023-07-02 02:46:54 +00:00
< h1 id = "cli" > CLI< / h1 >
< p > This page lists documentation for the CLI.< / p >
2024-11-20 06:08:16 +00:00
< h2 id = "backy" > Backy< / h2 >
< pre tabindex = "0" > < code > Backy is a command-line application useful for configuring backups, or any commands run in sequence.
Usage:
backy [command]
Available Commands:
backup Runs commands defined in config file.
completion Generate the autocompletion script for the specified shell
cron Starts a scheduler that runs lists defined in config file.
exec Runs commands defined in config file in order given.
help Help about any command
list Lists commands, lists, or hosts defined in config file.
version Prints the version and exits
Flags:
-f, --config string config file to read from
-h, --help help for backy
-v, --verbose Sets verbose level
Use " backy [command] --help" for more information about a command.
< / code > < / pre > < h1 id = "subcommands" > Subcommands< / h1 >
< h2 id = "backup" > backup< / h2 >
2023-07-02 02:46:54 +00:00
< pre tabindex = "0" > < code > Backup executes commands defined in config file.
2024-11-20 06:08:16 +00:00
Use the --lists or -l flag to execute the specified lists. If not flag is not given, all lists will be executed.
2023-07-02 02:46:54 +00:00
Usage:
2024-11-20 06:08:16 +00:00
backy backup [--lists=list1,list2,... | -l list1, list2,...] [flags]
2023-07-02 02:46:54 +00:00
Flags:
-h, --help help for backup
-l, --lists strings Accepts comma-separated names of command lists to execute.
Global Flags:
-f, --config string config file to read from
-v, --verbose Sets verbose level
2024-11-20 06:08:16 +00:00
< / code > < / pre > < h2 id = "cron" > cron< / h2 >
< pre tabindex = "0" > < code > Cron starts a scheduler that executes command lists at the time defined in config file.
2023-07-02 02:46:54 +00:00
Usage:
2024-11-20 06:08:16 +00:00
backy cron [flags]
2023-07-02 02:46:54 +00:00
Flags:
2024-11-20 06:08:16 +00:00
-h, --help help for cron
2023-07-02 02:46:54 +00:00
Global Flags:
-f, --config string config file to read from
-v, --verbose Sets verbose level
2024-11-20 06:08:16 +00:00
< / code > < / pre > < h2 id = "exec" > exec< / h2 >
< pre tabindex = "0" > < code > Exec executes commands defined in config file in order given.
2023-07-02 02:46:54 +00:00
Usage:
2024-11-20 06:08:16 +00:00
backy exec command ... [flags]
2023-07-02 02:46:54 +00:00
Flags:
2024-11-20 06:08:16 +00:00
-h, --help help for exec
2023-07-02 02:46:54 +00:00
Global Flags:
-f, --config string config file to read from
-v, --verbose Sets verbose level
2024-11-20 06:08:16 +00:00
< / code > < / pre > < h2 id = "version" > version< / h2 >
< pre tabindex = "0" > < code > Prints the version and exits. No arguments just prints the version number only.
2023-07-02 02:46:54 +00:00
Usage:
backy version [flags]
Flags:
-h, --help help for version
2024-11-20 06:08:16 +00:00
-n, --num Output the version number only.
-V, --vpre Output the version with v prefixed.
Global Flags:
-f, --config string config file to read from
-v, --verbose Sets verbose level
< / code > < / pre > < h2 id = "list" > list< / h2 >
< pre tabindex = "0" > < code > Backup lists commands or groups defined in config file.
Use the --lists or -l flag to list the specified lists. If not flag is not given, all lists will be executed.
Usage:
backy list [--list=list1,list2,... | -l list1, list2,...] [ -cmd cmd1 cmd2 cmd3...] [flags]
Flags:
-c, --cmds strings Accepts comma-separated names of commands to list.
-h, --help help for list
-l, --lists strings Accepts comma-separated names of command lists to list.
Global Flags:
-f, --config string config file to read from
-v, --verbose Sets verbose level
2023-07-02 02:46:54 +00:00
< / code > < / pre >
< footer class = "footline" >
2024-11-20 06:08:16 +00:00
2023-07-02 02:46:54 +00:00
< / footer >
< / article >
< / div >
< / main >
< / div >
2024-11-20 06:08:16 +00:00
< aside id = "sidebar" class = "default-animation" >
2023-07-02 02:46:54 +00:00
< div id = "header-wrapper" class = "default-animation" >
< div id = "header" class = "default-animation" >
< style >
a#logo {
color: #282828;
color: var(--MENU-SECTIONS-BG-color);
font-family: 'Work Sans', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
font-size: 30px;
font-weight: 300;
margin-top: -13px;
text-transform: uppercase;
width: 256px;
white-space: nowrap;
}
a#logo:hover {
color: #282828;
color: var(--MENU-SECTIONS-BG-color);
}
#logo svg {
margin-bottom: -20px;
margin-left: -23.5px;
width: 40.5%;
}
@media only all and (max-width: 59.938em) {
a#logo {
font-size: 25px;
margin-top: -3px;
}
#logo svg {
margin-bottom: -12px;
margin-left: -23px;
}
}
@media all and (-ms-high-contrast:none) {
/* IE11s understanding of positioning is weird at best */
a#logo {
margin-top: -58px;
}
#logo svg {
margin-bottom: -62px;
}
}
< / style >
< a id = "logo" href = "/index.html" >
< svg version = "1.1" id = "_x36_" xmlns = "http://www.w3.org/2000/svg" xmlns:xlink = "http://www.w3.org/1999/xlink" viewBox = "-51.2 -51.2 614.40 614.40" xml:space = "preserve" width = "128px" height = "128px" fill = "#ffffff" stroke = "#ffffff" stroke-width = "0.00512" transform = "rotate(0)" > < g id = "SVGRepo_bgCarrier" stroke-width = "0" > < rect x = "-51.2" y = "-51.2" width = "614.40" height = "614.40" rx = "0" fill = "#000000" strokewidth = "0" > < / rect > < / g > < g id = "SVGRepo_tracerCarrier" stroke-linecap = "round" stroke-linejoin = "round" > < / g > < g id = "SVGRepo_iconCarrier" > < g > < polygon style = "fill:none;" points = "275.211,140.527 360.241,140.527 380.083,120.685 275.211,120.685 " > < / polygon > < polygon style = "fill:none;" points = "232.234,268.534 219.714,281.054 232.234,281.054 " > < / polygon > < g > < g > < rect x = "232.254" y = "69.157" style = "fill:#718176;" width = "42.982" height = "377.465" > < / rect > < polygon style = "fill:#718176;" points = "56.146,446.588 76.861,489.564 232.234,489.564 232.234,446.588 " > < / polygon > < polygon style = "fill:#718176;" points = "275.21,446.588 275.21,489.564 435.111,489.564 455.826,446.588 " > < / polygon > < rect x = "232.234" y = "446.588" style = "fill:#979696;" width = "42.977" height = "42.977" > < / rect > < path style = "fill:#718176;" d = "M511.972,7.837v105.05c0,4.315-3.485,7.8-7.8,7.8H7.8c-4.315,0-7.8-3.485-7.8-7.8V7.837 c0-4.315,3.485-7.799,7.8-7.799h496.372C508.487,0.037,511.972,3.522,511.972,7.837z" > < / path > < path style = "fill:#718176;" d = "M511.972,148.318v105.05c0,4.315-3.485,7.883-7.8,7.883H7.8c-4.315,0-7.8-3.568-7.8-7.883v-105.05 c0-4.315,3.485-7.8,7.8-7.8h496.372C508.487,140.518,511.972,144.003,511.972,148.318z" > < / path > < path style = "fill:#718176;" d = "M511.972,288.882v105.05c0,4.315-3.485,7.799-7.8,7.799H7.8c-4.315,0-7.8-3.484-7.8-7.799v-105.05 c0-4.314,3.485-7.799,7.8-7.799h496.372C508.487,281.082,511.972,284.568,511.972,288.882z" > < / path > < path style = "fill:#FFFFFF;" d = "M492.427,6.264H19.545c-7.351,0-13.31,5.959-13.31,13.31v81.539 c0,7.351,5.959,13.309,13.31,13.309h472.882c7.351,0,13.31-5.959,13.31-13.309V19.573 C505.737,12.222,499.778,6.264,492.427,6.264z" > < / path > < path style = "fill:#FFFFFF;" d = "M492.427,146.79H19.545c-7.351,0-13.31,5.959-13.31,13.31v81.539c0,7.351,5.959,13.31,13.31,13.31 h472.882c7.351,0,13.31-5.959,13.31-13.31V160.1C505.737,152.749,499.778,146.79,492.427,146.79z" > < / path > < path style = "fill:#FFFFFF;" d = "M492.427,287.318H19.545c-7.351,0-13.31,5.959-13.31,13.31v81.539 c0,7.351,5.959,13.31,13.31,13.31h472.882c7.351,0,13.31-5.959,13.31-13.31v-81.539 C505.737,293.276,499.778,287.318,492.427,287.318z" > < / path > < g > < g > < path style = "fill:#718176;" d = "M57.355,26.558H43.829c-1.169,0-2.116,0.947-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V28.674C59.471,27.505,58.524,26.558,57.355,26.558z" > < / path > < path style = "fill:#718176;" d = "M57.355,52.308H43.829c-1.169,0-2.116,0.947-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V54.424C59.471,53.256,58.524,52.308,57.355,52.308z" > < / path > < path style = "fill:#718176;" d = "M57.355,78.059H43.829c-1.169,0-2.116,0.948-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V80.175C59.471,79.006,58.524,78.059,57.355,78.059z" > < / path > < / g > < g > < path style = "fill:#718176;" d = "M89.021,26.558H75.495c-1.169,0-2.116,0.947-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V28.674C91.137,27.505,90.19,26.558,89.021,26.558z" > < / path > < path style = "fill:#718176;" d = "M89.021,52.308H75.495c-1.169,0-2.116,0.947-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V54.424C91.137,53.256,90.19,52.308,89.021,52.308z" > < / path > < path style = "fill:#718176;" d = "M89.021,78.059H75.495c-1.169,0-2.116,0.948-2.116,2.116v13.548 c0,1.169,0.948,2.116,2.116,2.116h13.526c1.169,0,2.116-0.948,2.116-2.116V80.175C91.137,79.006,90.19,78.059,89.021,78.059z" > < / path > < / g > < g > < path style = "fill:#718176;" d = "M120.687,26.558h-13.525c-1.169,0-2.116,0.947-2.116,2.116v13.548 c0 , 1 . 169 , 0 . 948 , 2 . 116 , 2 . 116 , 2 . 116h13 . 525c1 . 169 , 0 , 2 . 116-0 . 948 , 2 . 116-2 . 116V28 . 674 C122 . 804 , 27 . 505 , 121 . 856 , 26 . 558 , 120 . 68
Backy
< / a >
< / div >
< div class = "searchbox default-animation" >
< i class = "fas fa-search" title = "Search (CTRL+ALT+f)" > < / i >
< label class = "a11y-only" for = "search-by" > Search< / label >
< input data-search-input id = "search-by" name = "search-by" class = "search-by" type = "search" placeholder = "Search..." >
< span data-search-clear = "" > < i class = "fas fa-times" > < / i > < / span >
< / div >
< script >
var contentLangs=['en'];
< / script >
2024-11-20 06:08:16 +00:00
< script src = "/js/auto-complete.js?1732082585" defer > < / script >
< script src = "/js/lunr/lunr.min.js?1732082585" defer > < / script >
< script src = "/js/lunr/lunr.stemmer.support.min.js?1732082585" defer > < / script >
< script src = "/js/lunr/lunr.multi.min.js?1732082585" defer > < / script >
< script src = "/js/lunr/lunr.en.min.js?1732082585" defer > < / script >
< script src = "/js/search.js?1732082585" defer > < / script >
2023-07-02 02:46:54 +00:00
< / div >
< div id = "content-wrapper" class = "highlightable" >
2024-11-20 06:08:16 +00:00
< ul class = "topics enlarge morespace collapsible-menu" >
< li data-nav-id = "/getting-started/index.html" class = "" > < input type = "checkbox" id = "section-ffe9773a38b1e1cbc000aa49823cb86b" aria-controls = "subsections-ffe9773a38b1e1cbc000aa49823cb86b" > < label for = "section-ffe9773a38b1e1cbc000aa49823cb86b" > < i class = "fas fa-chevron-down" > < / i > < i class = "fas fa-chevron-right" > < / i > < span class = "a11y-only" > Submenu Getting started< / span > < / label > < a class = "padding" href = "/getting-started/index.html" > Getting started< / a > < ul id = "subsections-ffe9773a38b1e1cbc000aa49823cb86b" class = "morespace collapsible-menu" >
< li data-nav-id = "/getting-started/install/index.html" class = "" > < a class = "padding" href = "/getting-started/install/index.html" > Install Backy< / a > < / li >
< li data-nav-id = "/getting-started/config/index.html" class = "" > < a class = "padding" href = "/getting-started/config/index.html" > Config File Definitions< / a > < / li > < / ul > < / li >
< li data-nav-id = "/config/index.html" class = "" > < input type = "checkbox" id = "section-05a1934784c32ed5016a6c9b2dd9e019" aria-controls = "subsections-05a1934784c32ed5016a6c9b2dd9e019" > < label for = "section-05a1934784c32ed5016a6c9b2dd9e019" > < i class = "fas fa-chevron-down" > < / i > < i class = "fas fa-chevron-right" > < / i > < span class = "a11y-only" > Submenu Configuring Backy< / span > < / label > < a class = "padding" href = "/config/index.html" > Configuring Backy< / a > < ul id = "subsections-05a1934784c32ed5016a6c9b2dd9e019" class = "morespace collapsible-menu" >
< li data-nav-id = "/config/commands/index.html" class = "" > < a class = "padding" href = "/config/commands/index.html" > Commands< / a > < / li >
< li data-nav-id = "/config/command-lists/index.html" class = "" > < a class = "padding" href = "/config/command-lists/index.html" > Command Lists< / a > < / li >
< li data-nav-id = "/config/notifications/index.html" class = "" > < a class = "padding" href = "/config/notifications/index.html" > Notifications< / a > < / li >
< li data-nav-id = "/config/vault/index.html" class = "" > < a class = "padding" href = "/config/vault/index.html" > Vault< / a > < / li > < / ul > < / li >
< li data-nav-id = "/cli/index.html" class = "active" > < a class = "padding" href = "/cli/index.html" > CLI< / a > < / li >
< li data-nav-id = "/repositories/index.html" class = "" > < a class = "padding" href = "/repositories/index.html" > Repositories< / a > < / li >
2023-07-02 02:46:54 +00:00
< / ul >
2024-11-20 06:08:16 +00:00
< div class = "padding footermargin footerLangSwitch footerVariantSwitch footerVisitedLinks footerFooter showFooter" > < / div >
< hr class = "padding default-animation footerLangSwitch footerVariantSwitch footerVisitedLinks footerFooter showFooter" >
2023-07-02 02:46:54 +00:00
< div id = "prefooter" class = "footerLangSwitch footerVariantSwitch footerVisitedLinks" >
< ul >
< li id = "select-language-container" class = "footerLangSwitch" >
< div class = "padding select-container" >
< i class = "fas fa-language fa-fw" > < / i >
< span > < / span >
< div class = "select-style" >
< label class = "a11y-only" for = "select-language" > Language< / label >
< select id = "select-language" onchange = "location = baseUri + this.value;" >
2024-11-20 06:08:16 +00:00
< option lang = "en" id = "en" value = "/cli/index.html" selected > < / option >
2023-07-02 02:46:54 +00:00
< / select >
< / div >
< div class = "select-clear" > < / div >
< / div >
< / li >
< li id = "select-variant-container" class = "footerVariantSwitch" >
< div class = "padding select-container" >
< i class = "fas fa-paint-brush fa-fw" > < / i >
< span > < / span >
< div class = "select-style" >
< label class = "a11y-only" for = "select-variant" > Theme< / label >
< select id = "select-variant" onchange = "window.variants && variants.changeVariant( this.value );" >
< option id = "auto" value = "auto" selected > Auto< / option >
< / select >
< / div >
< div class = "select-clear" > < / div >
< / div >
< script > window . variants && variants . markSelectedVariant ( ) ; < / script >
< / li >
2024-11-20 06:08:16 +00:00
< li class = "footerVisitedLinks" > < button class = "padding" onclick = "clearHistory();" > < i class = "fas fa-history fa-fw" > < / i > < span > < / span > Clear History< / button > < / li >
2023-07-02 02:46:54 +00:00
< / ul >
< / div >
< div id = "footer" class = "footerFooter showFooter" >
< p > Built with < a href = "https://github.com/McShelby/hugo-theme-relearn" title = "love" > < i class = "fas fa-heart" > < / i > < / a > by < a href = "https://gohugo.io/" > Hugo< / a > < / p >
< / div >
< / div >
< / aside >
2024-11-20 06:08:16 +00:00
< script src = "/js/clipboard.min.js?1732082585" defer > < / script >
< script src = "/js/perfect-scrollbar.min.js?1732082585" defer > < / script >
2023-07-02 02:46:54 +00:00
< script >
function useMathJax( config ){
if( !Object.assign ){
return;
}
window.MathJax = Object.assign( window.MathJax || {}, {
loader: {
load: ['[tex]/mhchem']
},
startup: {
elements: [
'.math'
]
},
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)']
]
},
options: {
enableMenu: false
}
}, config );
}
useMathJax( JSON.parse("{}") );
< / script >
< script id = "MathJax-script" async src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" > < / script >
2024-11-20 06:08:16 +00:00
< script src = "/js/d3/d3-color.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-dispatch.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-drag.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-ease.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-interpolate.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-selection.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-timer.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-transition.min.js?1732082585" defer > < / script >
< script src = "/js/d3/d3-zoom.min.js?1732082585" defer > < / script >
2023-07-02 02:46:54 +00:00
< script src = "https://unpkg.com/mermaid/dist/mermaid.min.js" defer > < / script >
< script >
window.themeUseMermaid = JSON.parse("{ \"theme\": \"default\" }");
< / script >
2024-11-20 06:08:16 +00:00
< script src = "/js/theme.js?1732082585" defer > < / script >
2023-07-02 02:46:54 +00:00
< / body >
< / html >