Update for pg_dump backups
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user