Update for pg_dump backups

This commit is contained in:
Bel LaPointe
2020-04-07 13:07:58 -06:00
parent 89333e35c6
commit 2cffb2c2cb
2 changed files with 15 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ int main() {
printf("Waiting...\n");
stat = sigwait(&set, &sig);
printf("Wait complete: %i (%i)\n", sig, stat);
printf("Stopped postgres: %i\n", system("service postgresql stop && sleep 5"));
printf("Saved postgres: %i\n", system("bash /backup.sh"));
printf("Bye-bye!\n");
return 0;
}