We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d379d0 commit cc4ff4dCopy full SHA for cc4ff4d
etc/scripts/backup.sh
@@ -0,0 +1,6 @@
1
+
2
+# backup current Db
3
4
+DBDUMP=vcio-db-dump-$(date +"%Y-%m-%d_%H%M").dump
5
+echo "Backup vulnerablecode current DB to: $DBDUMP"
6
+sudo -u postgres pg_dump --format=c vulnerablecode > $DBDUMP
etc/scripts/restore.sh
@@ -0,0 +1,9 @@
+# backup current Db and then restore a dump
+./backup.sh
+echo "Restore vulnerablecode dump from: $1"
+sudo -u postgres dropdb vulnerablecode
7
+sudo -u postgres createdb --encoding=utf-8 --owner=vulnerablecode vulnerablecode
8
+sudo -u postgres pg_restore --verbose -d vulnerablecode $1
9
0 commit comments