News for hackers. Stuff that matters.
Re:“Catastrophic” hack wipes out email provider’s entire inf... by AznHisoka on Tuesday February 12, 2019 @03:27PM (#19147172)
How did you know if the pg_dump finished running? In my experience, there doesn't seem to be any way to find out if it finished, or exited prematurely. The only hack I came up with is to write the output to a log, and then grep the log for the last alphabetical table, and ensure it was in the log. That usually meant it backed up all the tables.
Re:“Catastrophic” hack wipes out email provider’s entire inf... by adamzochowski on Tuesday February 12, 2019 @11:19PM (#19150381)
pg_dump provides return codes just like any other executable. Zero means no error, and treat non-zero value as an error.