From 04da16dd682a073513e989276ed179a1a27f8c9a Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 14 Nov 2020 18:58:06 +0530 Subject: Add Makefile, man page, change config format, bump version This commit pushes a lot of changes at once. Older config will no longer work with this. The file name will contain time in local timezone instead of UTC. Makefile & man page was copied from tomasino's pb(1). (tomasino.org) --- leo.1 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 leo.1 (limited to 'leo.1') diff --git a/leo.1 b/leo.1 new file mode 100644 index 0000000..74637f9 --- /dev/null +++ b/leo.1 @@ -0,0 +1,57 @@ +.TH LEO 1 "14 November 2020" "v0.4.0" + +.SH NAME +leo \- a simple backup program + +.SH SYNOPSIS +.B leo +[--help] [--version] [--verbose] profiles +.P + +.SH DESRIPTION +.B leo +is a simple backup program. It creates tar(1) files from a pre-defined +list. It can encrypt/sign files with gpg2(1) & sign files with +signify(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 PROFILE +Profile is a simple hash table which contains the list of profiles. +The profiles are mapped to a list of file paths which are to be backed +up. +.SH OPTIONS +The options are as follows: +.TP +.B --verbose +Verbose output. This flag will be passed to commands that leo +executes. +.TP +.BI --version +Print version. +.TP +.B --help +Print help. This will also print list of profiles with their +configuration. +.SH ENVIRONMENT VARIABLES +As shown in examples below, environment variables can be used to +configure leo. + +Available options are: +.B L_ENCRYPT +.B L_SIGN +.B L_SIGNIFY +.B L_GZIP +.SH EXAMPLES +.TP +.B leo journal emacs +Backup `journal' & `emacs' profile. +.TP +.B L_ENCRYPT=1 leo journal +Backup `journal' & encrypt it. This encrypt option can be over-ridden +by the config file. +.SH BUGS +It'll set the tar & gpg output file's mode to 0600 & there is no way +to configure that. +.SH AUTHOR +Andinus -- cgit 1.4.1-2-gfad0