]> git.parisson.com Git - mezzo.git/commitdiff
Rename scripts
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 5 Dec 2016 09:37:36 +0000 (10:37 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 5 Dec 2016 09:37:36 +0000 (10:37 +0100)
bin/db/backup.sh [new file with mode: 0755]
bin/db/backup_db.sh [deleted file]
bin/db/restore.sh [new file with mode: 0755]
bin/db/restore_db.sh [deleted file]

diff --git a/bin/db/backup.sh b/bin/db/backup.sh
new file mode 100755 (executable)
index 0000000..35b7e2f
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export PGPASSWORD=$POSTGRES_PASSWORD
+
+pg_dump -Fc -hdb -Upostgres -dpostgres > /srv/backup/ircam-www.dump
+
+echo "Backup done!"
diff --git a/bin/db/backup_db.sh b/bin/db/backup_db.sh
deleted file mode 100755 (executable)
index 35b7e2f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-export PGPASSWORD=$POSTGRES_PASSWORD
-
-pg_dump -Fc -hdb -Upostgres -dpostgres > /srv/backup/ircam-www.dump
-
-echo "Backup done!"
diff --git a/bin/db/restore.sh b/bin/db/restore.sh
new file mode 100755 (executable)
index 0000000..cd529b9
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export PGPASSWORD=$POSTGRES_PASSWORD
+
+pg_restore -c -Fc -hdb -Upostgres -dpostgres /srv/backup/ircam-www.dump
+
+echo "Restore done!"
diff --git a/bin/db/restore_db.sh b/bin/db/restore_db.sh
deleted file mode 100755 (executable)
index cd529b9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-export PGPASSWORD=$POSTGRES_PASSWORD
-
-pg_restore -c -Fc -hdb -Upostgres -dpostgres /srv/backup/ircam-www.dump
-
-echo "Restore done!"