about summary refs log tree commit diff stats
path: root/leo.pl
Commit message (Collapse)AuthorAgeFilesLines
* Add new option to manpage & help v0.5.1Andinus2020-11-221-0/+2
|
* Make signing optionalAndinus2020-11-221-6/+12
| | | | | Users might not want to store the private key on remote servers. But they should be able to encrypt it so we make it optional.
* Simplify leo, bump version to v0.5.0 v0.5.0Andinus2020-11-211-106/+78
|
* Fix date() v0.4.4Andinus2020-11-171-2/+2
| | | | It was returning incorrect time, switched to localtime().
* Fix regexAndinus2020-11-171-1/+1
|
* Add regex support to exclude files/directories, other improvements v0.4.3Andinus2020-11-171-80/+58
| | | | | The functionality will be the same, lots of things were changed. The output is brief by default.
* Warn if $gpg_bin is set to something other than "gpg" or "gpg2" v0.4.2Andinus2020-11-171-0/+2
|
* Bump version to v0.4.1 v0.4.1Andinus2020-11-151-1/+1
|
* Add support for setting options from environment variablesAndinus2020-11-151-1/+7
| | | | This is mentioned in man page but wasn't implemented.
* Add Makefile, man page, change config format, bump version v0.4.0Andinus2020-11-141-78/+44
| | | | | | | | | 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)
* CHange backup file's mode to 0600, bump version v0.3.4Andinus2020-11-111-1/+6
|
* Sign the encrypted file with signifyAndinus2020-11-111-12/+6
| | | | | Earlier signify would sign the tar file, now it'll sign the encrypted file if it was encrypted.
* Add option to print version, check for variable before splitting v0.3.3Andinus2020-11-111-2/+12
|
* Add gzip support for compressing archives v0.3.2Andinus2020-11-111-10/+26
| | | | Archives can now be compressed by gzip(1).
* Warn when signify & gnupg is used together v0.3.1Andinus2020-11-081-9/+14
| | | | | Warn when signify & gnupg is used together & added config option to disable the warning if the user knows what they're doing.
* Fix syntax error that was messing with $min v0.3.0Andinus2020-10-301-1/+1
|
* Change backup format, group by profile instead of dateAndinus2020-10-291-8/+14
| | | | | | | | | | | | | | Backups are now grouped by profile instead of date. This means less noise when running daily backup of a specific profile, earlier it would've polluted the backups directory, now it'll add the backups to the profile specific folder. Also, this includes more information & users can run leo multiple times a day. Earlier running more than once a day would've over-written the previous backup, from now on it'll create a new file because we include time in the filename. Time will be in GMT.
* Update help message to add signify & remove delete optionAndinus2020-10-151-3/+3
|
* Add new option in config v0.2.1Andinus2020-10-151-1/+1
|
* Add option to specify gpg recipientsAndinus2020-10-151-2/+10
|
* Fix a typo in variable nameAndinus2020-10-151-1/+1
|
* Fix unlinking files after running gpgAndinus2020-10-151-2/+1
|
* Update warning on using gpg with signifyAndinus2020-10-151-2/+2
|
* Remove unrequired options, don't use prototypesAndinus2020-10-151-5/+8
|
* Add support for signify(1)Andinus2020-10-151-8/+41
|
* Add fallback for $gpg_fingerprint & $gpg_binAndinus2020-10-141-4/+4
|
* Add additional information in READMEAndinus2020-10-141-2/+1
|
* Fix logical error, override local values correctly v0.1.1Andinus2020-10-121-7/+11
|
* Add new config fileAndinus2020-10-121-1/+1
|
* Enforce local values for encyrpt & signAndinus2020-10-121-14/+22
|
* Add option to exclude pathsAndinus2020-10-121-14/+32
|
* Remove obsolete code, add extra config optionsAndinus2020-10-111-14/+17
|
* Switch config, simplify script, make paths relative to '/'Andinus2020-10-081-32/+50
|
* Get $backup_dir from config, format $mday with 2 leading zerosAndinus2020-10-081-6/+9
| | | | | This will not work with previous configs. But that's fine because I'm the only one using this.
* Change default backup directoryAndinus2020-09-031-1/+1
|
* Fix logical errorAndinus2020-09-021-2/+4
| | | | | There are still issues with this, for example the user can't pass ``documents/text.txt'' or anything in sub-directory.
* Create profiles on the flyAndinus2020-09-021-1/+6
|
* Move configuration to a config fileAndinus2020-08-311-22/+9
| | | | | I'll switch to some other config format later, this format is not safe at all!
* Fix options checkingAndinus2020-08-311-4/+6
| | | | options passed via arguments were being ignored.
* Add fortunes directory to profileAndinus2020-08-281-2/+3
|
* Change mentions of "archive" to "backup"Andinus2020-08-271-13/+13
| | | | | | | | This is a backup program now. By archive I think of something else, like I archive web pages to save them offline. And by backup I think of storing files safely somewhere so that we can restore it later. Doesn't matter.
* Remove date from archive files, add date to archive directoryAndinus2020-08-271-2/+2
| | | | | This format is better than keeping lots of files in a single directory.
* Add help option, update documentation to explain new profilesAndinus2020-08-271-3/+4
|
* Fix help message, switch to %profile from dispatch tablesAndinus2020-08-271-61/+46
| | | | | | | Now we can use aliases again, no dispatch table required, help is generated automatically & configuration looks much simpler. We can still have special profiles like I've created for journal directly when calling archive().
* Make all paths relative to $HOME, add emacs & config to dispatchAndinus2020-08-271-30/+20
| | | | | | | I'm trying to make it easier to print help message, I don't want to print it manually. After this I'll just turn the dispatch table into just table which contains all the paths to be archived & then I'll be able to print help nicely.
* Remove aliases, move to a different functionAndinus2020-08-271-6/+20
| | | | | | Problem with aliases was that profile name would still be say `.ssh' for ssh which means the archive created will be `.ssh-...tar' which is not what I wanted.
* Add several paths to dispatch table, simplify table generationAndinus2020-08-271-15/+17
| | | | | | | | | | | | | | | | | | I added a lot of things to profile, there was a lot of repetition in dispatch table so I moved it to a function. Aliases were used for inconvenient paths but I could've done this too: my %directories = ( ssh => "$ENV{HOME}/.ssh", pass => "$ENV{HOME}/.password-store", ); foreach my $dir (sort keys %directories) { $dispatch{$dir} = sub { archive("$archive_dir/${dir}_${ymd}.tar", "-C", "$directories{$dir}", "."); }; }
* Add environment variables for some optionsAndinus2020-08-271-0/+4
|
* Print Encrypted/Signed status , don't encrypt journalAndinus2020-08-271-1/+7
| | | | My journal is already encrypted so don't encrypt it again.
* Parse @ARGV to catch all argumentsAndinus2020-08-271-7/+10
| | | | | Now the user can run ``leo pass journal'' & both will be archived, previously `journal' would've been ignored.