Skip to content

Commit

Permalink
Add db backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Aug 3, 2024
1 parent 8dafedd commit bcc5128
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e

VAR=${KC_VAR:-/home/kachiclash/public/var}
DATE=`date +%Y%m%d`
mkdir -p $VAR/backup
#sudo -u kachiclash
tar --zstd -cf $VAR/backup/dbs-$DATE.tar.zstd $VAR/*.sqlite

0 comments on commit bcc5128

Please sign in to comment.