diff options
author | Andinus <andinus@nand.sh> | 2020-10-12 13:03:32 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-10-12 13:03:32 +0530 |
commit | bc94b23d75c03048d8ec2d2fda71cc30a2ab5d8f (patch) | |
tree | fec17a65547d62a90141a8fc50e32813e2465c79 | |
parent | 78ea92f0d6e9c465b7626986897c90cc184159d6 (diff) | |
download | leo-bc94b23d75c03048d8ec2d2fda71cc30a2ab5d8f.tar.gz |
Add new config file
-rwxr-xr-x | leo.pl | 2 | ||||
-rw-r--r-- | share/leo.conf | 19 |
2 files changed, 17 insertions, 4 deletions
diff --git a/leo.pl b/leo.pl index 4d7e043..5b7a106 100755 --- a/leo.pl +++ b/leo.pl @@ -95,7 +95,7 @@ sub backup { my @tmp_paths = $profile{$prof}{backup}->@*; while (my $path = shift @tmp_paths) { if (-d $path) { - my $iter = path($path)->iterator; + my $iter = path($path)->iterator(); while ( my $path = $iter->() ) { push @backup_paths, path( $path )->relative('/') unless $exclude_paths{$path}; diff --git a/share/leo.conf b/share/leo.conf index a0280a7..33df185 100644 --- a/share/leo.conf +++ b/share/leo.conf @@ -3,12 +3,17 @@ backup_dir = /home/andinus/backups gpg_fingerprint = D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD gpg_bin = gpg2 -encrypt=1 -sign=1 -delete=1 +# Options. +encrypt = 1 +sign = 1 +delete = 1 # Profile names in []. [journal] +# Local options (only `encrypt' & `sign'). +encrypt = 0 +sign = 1 + # Paths to backup. '=' after path is important. /home/andinus/documents/andinus.org.gpg = /home/andinus/documents/archive.org.gpg = @@ -17,3 +22,11 @@ delete=1 /home/andinus/.emacs.d = /home/andinus/.elfeed = /home/andinus/.org-timestamps = + +[projects] +/home/andinus/projects = +# Exclude directories with `exclude' value. +/home/andinus/projects/forks = exclude + +[academics] +/home/andinus/documents/academics = |