From c0a2300b52c682975fbe365de21547db71d18a38 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 13 Jan 2021 11:29:00 +0530 Subject: Port leo to Raku This is a huge change. I had some more ideas in mind but I won't be able to work on them. leo's raku version can be improved. I'm personally using the Raku version because the rotate feature is nice. --- share/leo.1 | 26 ++++++++++++++++++++++++++ share/leo.toml | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 share/leo.1 create mode 100644 share/leo.toml (limited to 'share') diff --git a/share/leo.1 b/share/leo.1 new file mode 100644 index 0000000..cfd3d73 --- /dev/null +++ b/share/leo.1 @@ -0,0 +1,26 @@ +.TH LEO 1 "04 January 2021" "v0.6.0" + +.SH NAME +leo \- a simple backup program +.SH SYNOPSIS +.B leo +[-v|--verbose] [--version] [ ...] +.P +.SH DESRIPTION +.B leo +is a simple backup program. It creates tar(1) files from a pre-defined +list. It can also encrypt/sign files with gpg2(1). + +I use this to quickly backup some of my files. It works on profiles, +profiles are simple lists of files which get backed up. +.SH ACTIONS +The actions are as follows: +.TP +.B backup +Backup the given profile. +.TP +.B rotate +Rotate the given profile's backups. +.TP +.SH AUTHOR +Andinus diff --git a/share/leo.toml b/share/leo.toml new file mode 100644 index 0000000..0336d4e --- /dev/null +++ b/share/leo.toml @@ -0,0 +1,25 @@ +backup = "/tmp/backups" +base_dir = "/home/andinus" # Default base_dir. + +[gpg] # GnuPG related configuration. +sign = true +encrypt = true + +fingerprint = "andinus@nand.sh" +recipients = ["D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD"] + +[rotate] +hold = 1 # Hold these many old backups. +keep = 2 # Keep these many latest backups. + +[profiles] +[profiles.journal] +encrypt = false +paths = ["journal.org.gpg"] + [profiles.journal.rotate] + hold = 2 + keep = 4 + +[profiles.projects] +base_dir = "/home/andinus/projects" +# Not specifying paths is okay, it'll just archive base_dir. -- cgit 1.4.1-2-gfad0