Top of Document
A B<Raku> application for backing up a box.
backup.raku specials --help
Usage:
backup.raku specials -- backup special files and directories to per system special location.
Top of Document
MAIN:("specials", Bool:D :v(:$version) = Bool::False, Str:D :c(:$bar-char) = "⧫", Str:D :e(:$empty-char) = " ", Str:D :P(:$prefix-foreground) = "bold,red", Str:D :p(:$prefix-background) = "green", Str:D :G(:$gauge-foreground) = "bold,red", Str:D :g(:$gauge-background) = "cyan", Str:D :S(:$suffix-foreground) = "bold,green", Str:D :s(:$suffix-background) = "blue", Bool:D :r(:$progress) = Bool::False, Bool:D :d(:$delete) = Bool::False --> Int):
# backup special files and directories to per system special location
MAIN:("new", Bool:D :v(:$version) = Bool::False, Str:D :c(:$bar-char) = "⧫", Str:D :e(:$empty-char) = " ", Str:D :P(:$prefix-foreground) = "bold,red", Str:D :p(:$prefix-background) = "green", Str:D :G(:$gauge-foreground) = "bold,red", Str:D :g(:$gauge-background) = "cyan", Str:D :S(:$suffix-foreground) = "bold,green", Str:D :s(:$suffix-background) = "blue", Str :t(:$time) = Code.new, Str :b(:$backup-to) is copy = Code.new, Bool:D :r(:$progress) = Bool::False, Bool:D :d(:$delete) = Bool::False --> Int):
# create a new backup on device.
MAIN:("add-to-last", Bool:D :v(:$version) = Bool::False, Str:D :c(:$bar-char) = "⧫", Str:D :e(:$empty-char) = " ", Str:D :P(:$prefix-foreground) = "bold,red", Str:D :p(:$prefix-background) = "green", Str:D :G(:$gauge-foreground) = "bold,red", Str:D :g(:$gauge-background) = "cyan", Str:D :S(:$suffix-foreground) = "bold,green", Str:D :s(:$suffix-background) = "blue", Str :t(:$time) = Code.new, Str :b(:$backup-to) is copy = Code.new, Bool:D :r(:$progress) = Bool::False, Bool:D :d(:$delete) = Bool::False --> Int):
# add to the last backup on the device
MAIN:("restore", "last", Str :t(:$time) = Code.new, Str :r(:$restore-from) is copy = Code.new, Str :T(:$to) = Code.new, Bool :f(:$force) = Bool::False --> Int):
# restore from the last bacup on the device
MAIN:("restore", "menu", Str :r(:$restore-from) = Code.new, Str :T(:$to) = Code.new, Bool :f(:$force) = Bool::False, Bool :l(:$list-all) = Bool::False --> Int):
# prompt with a menu to seclect and restore from backups on the device
MAIN:("get", "files", Str :r(:$restore-from) = Code.new, Str :T(:$to) = Code.new, Bool :f(:$force) = Bool::False, Bool :l(:$list-all) = Bool::False, *@files --> Int):
# restore these files from the backup bacup is specified by menu
MAIN:("remove", Str :r(:$remove-from) = Code.new, Bool :s(:$silent) = Bool::False, Bool :l(:$list-all) = Bool::False --> Int):
# remove backup chosen by menu from device
MAIN:("list", Bool :a(:$all) = Bool::False, Str :d(:$dir) = Code.new --> Int):
# list all backups
MAIN:("configs", "list" --> Int):
# list and describe all configfiles
MAIN:("set", "device", Str:D $device --> Int):
# set the device for backups to the device file
MAIN:("add", "guieditor", Str:D $guieditor --> Int):
# add a gui ewditor to the configuration file device
MAIN:("add", "file-exclusion", Str:D $pattern --> Int):
# add a pattern to the configuration file exclude-files
MAIN:("edit", "configs" --> Int):
# edit all config files in the gui editorof your choice.
MAIN:("help" --> Int):
# display help message
MAIN:("usage" --> Int):
# display usage message