Browse Source

Update with newer fields from trapexit/scorch@5dc1d75

master
Alex Williams 1 year ago
parent
commit
7ea62fc68c
Signed by: aw GPG Key ID: 19EE4AAA361A7E2C
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scorch-to-sqlite.sh

+ 2
- 2
scorch-to-sqlite.sh View File

@ -24,13 +24,13 @@ cleanup() {
trap cleanup EXIT
echo 'file,hash,size,mode,mtime,inode' > "$scorch_csv"
echo 'file,hash,size,mode,mtime,inode,state,checked' > "$scorch_csv"
echo "Decompressing DB: $scorch_db"
gzip -d -k -c "$scorch_db" >> "$scorch_csv"
echo "Backing up SQLite DB: $scorch_sql"
mv -v "$scorch_sql" "${scorch_sql}-`date +%s`"
[ -f "$scorch_sql" ] && mv -v "$scorch_sql" "${scorch_sql}-`date +%s`"
echo "Importing DB into SQLite: $scorch_sql"
sqlite3 -csv "$scorch_sql" ".import $scorch_csv scorch"

Loading…
Cancel
Save