1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-07-12 17:54:40 +03:00

Added timestamp support

This commit is contained in:
10
2018-11-18 02:37:01 +01:00
parent e551725d7a
commit e9ac54cebf
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh
if [ $TIMESTAMP = true ]
then
BACKUP_FILE="$(echo $BACKUP_FILE)_$(date "+%F-%H%M%S")"
fi
/usr/bin/sqlite3 $DB_FILE ".backup $BACKUP_FILE"
if [ $? -eq 0 ]
then