From: Guillaume Pellerin Date: Mon, 5 Dec 2016 09:37:36 +0000 (+0100) Subject: Rename scripts X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a0684bcc316dc66ac1baadb73d113c897b9cd398;p=mezzo.git Rename scripts --- diff --git a/bin/db/backup.sh b/bin/db/backup.sh new file mode 100755 index 00000000..35b7e2f5 --- /dev/null +++ b/bin/db/backup.sh @@ -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 index 35b7e2f5..00000000 --- a/bin/db/backup_db.sh +++ /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 index 00000000..cd529b95 --- /dev/null +++ b/bin/db/restore.sh @@ -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 index cd529b95..00000000 --- a/bin/db/restore_db.sh +++ /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!"