App::Sync

Table of Contents

Top of Document

Introduction

A B<Raku> application for synchronising a set of boxes. 

sync.raku

sync.raku --help
Usage:
  sync.raku -- Synchronise systems in hosts file.

MAIN:(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:D :$sub-bar-char = "❚", Str:D :$sub-empty-char = " ", Str:D :$sub-gauge-foreground = "bold,green", Str:D :$sub-gauge-background = "red", Str:D :$sub-suffix-foreground = "bold,red", Str:D :$sub-suffix-background = "cyan", Bool:D :r(:$progress) = Bool::False, Bool:D :d(:$delete) = Bool::False --> Int): # Synchronise systems in hosts file.
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 config file device
MAIN:("add", "host", Str:D $host-name --> Int): # add a host to the config file hosts
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
MAIN:("remove", Bool :s(:$silent) = Bool::False, Bool :y(:$yes) = Bool::False, *@files --> Int): # remove the files from all hosts in hosts.
MAIN:("move", Str $dest, Bool :s(:$silent) = Bool::False, Bool :y(:$yes) = Bool::False, *@files --> Int): # move the files on all synced systems to $dest
MAIN:("put-in-dirs", Int $first, Int $last, Bool :s(:$silent) = Bool::False, Bool :y(:$yes) = Bool::False, *@files --> Int): # put all files matching current* (excluding current itself) into directory current where current is succesively each value from first to last and then put files into first