Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash --
- sqlite3 home-assistant_v2.db <<"EOF"
- pragma integrity_check;
- .mode insert
- .output mydb_export.sql
- .dump
- .exit
- now=$(date +"%T")
- mv home-assistant_v2.db home-assistant_v2.db.$now.original
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement