commit 24068d92335667e4e750e5fdfd6c3e06da829e2c
parent ff38eaa368923b9369bd460b8f6b66161e6195bb
Author: oscarbenedito <oscar@obenedito.org>
Date: Sun, 15 Dec 2019 23:14:22 +0100
Updated markion
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dot_bash_aliases.tmpl.md b/dot_bash_aliases.tmpl.md
@@ -90,6 +90,12 @@ The following alias is used when backing up my USB drive.
alias backup_usb="rsync -gloptruzvP --delete --exclude={"/Varis/copia-gris.hc","/Varis/copia-gris-git.hc"} /media/$USER/Oscar/ {{ .chezmoi.homedir }}/USB/"
```
+### Git Backups
+Backing up all the git repositories.
+``` block backup_git
+alias backup_git="cd {{ .chezmoi.homedir }}/Git/backup && ./git-backup.py"
+```
+
### Writing the backups
Finally, we include the aliases to the file.
``` file dot_bash_aliases.tmpl
@@ -97,6 +103,7 @@ Finally, we include the aliases to the file.
[[ include backup_all ]]
[[ include backup_vc_10_11 ]]
[[ include backup_usb ]]
+[[ include backup_git ]]
{{- end }}
```
diff --git a/markion.py b/markion.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3.6
+#!/usr/bin/env python3
# Copyright (C) 2019 Oscar Benedito
#
# This file is part of Markion.
diff --git a/markion.sh b/markion.sh
@@ -6,5 +6,5 @@ for f in $(find $HOME/.local/share/chezmoi -name "*.md"); do
if [ "$f" = "$HOME/.local/share/chezmoi/README.md" -o "${f%.*}" -nt "$f" ]; then
continue
fi
- python3.6 $HOME/.local/share/chezmoi/markion.py -D $f
+ python3 $HOME/.local/share/chezmoi/markion.py -D $f
done