diff options
-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 = |