| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
Earlier signify would sign the tar file, now it'll sign the encrypted
file if it was encrypted.
|
| |
|
|
|
|
| |
Archives can now be compressed by gzip(1).
|
|
|
|
|
| |
Warn when signify & gnupg is used together & added config option to
disable the warning if the user knows what they're doing.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This will not work with previous configs. But that's fine because I'm
the only one using this.
|
| |
|
|
|
|
|
| |
There are still issues with this, for example the user can't pass
``documents/text.txt'' or anything in sub-directory.
|
| |
|
|
|
|
|
| |
I'll switch to some other config format later, this format is not safe
at all!
|
|
|
|
| |
options passed via arguments were being ignored.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This format is better than keeping lots of files in a single
directory.
|
| |
|
|
|
|
|
|
|
| |
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().
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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}", ".");
};
}
|
| |
|
|
|
|
| |
My journal is already encrypted so don't encrypt it again.
|
|
|
|
|
| |
Now the user can run ``leo pass journal'' & both will be archived,
previously `journal' would've been ignored.
|
|
|
|
|
|
|
| |
Fixes this error:
gpg: WARNING: recipients (-r) given without using public key
encryption
|
|
|
|
|
| |
Maybe I should delete the tar file by default & add a `nodelete'
option.
|
|
|
|
| |
This will remove the archive after running gpg2.
|
| |
|
| |
|
|
|
|
| |
These will mostly remain unchanged so I moved them to the end.
|
|
|
|
|
| |
Moved @ARGV parsing & HelpMessage sub to the end. tar_create is now
a simple wrapper around `/bin/tar'.
|
|
|
|
|
|
| |
I'm thinking of making leo as my archive program instead of a
meta-program to hold all my scripts. It's simpler to keep them
seperated, meta-program would've been complex.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`archive_HelpMessage' was removed because variables from `archive' sub
are not shared with it.
On #perl@freenode:
<andinus> i have a sub archive_Help inside of sub archive, when i try to
use archive's var in archive_Help perl says "Variable
"$archive_dir" will not stay shared at..." [02:55]
[...]
<Grinnz> generally, you pass variables into subs that you call [02:57]
<Grinnz> defining a sub within another sub is evidence that you did it
wrong
[...]
<andinus> is defining a sub within a sub not a good idea?
<Grinnz> it does nothing useful [03:01]
<Grinnz> and causes issues like the one you are having
[...]
|