1
0
Fork 0

Add my wn.db backup script

The restic portion is very specific to my setup.
I don't include the restic-backup script for now.
This commit is contained in:
gg 2023-09-20 16:14:56 -07:00
parent ea6e93b5e0
commit 8a87ab45d0
1 changed files with 6 additions and 0 deletions

6
bin/wndb-backup.sh Executable file
View File

@ -0,0 +1,6 @@
WN=${WN:-"$HOME/src/vern.cc/gg/WeatherNews.jl"}
echo ".backup $WN/sql/backup.db" | sqlite3 $WN/sql/wn.db
which restic-backup > /dev/null && {
restic-backup ${repo:-local-hm80} $WN/sql/backup.db
}