Skip to content

[SUGGESTION] Add duration of pg_dump operation to log file entries #1

@melmatsuoka

Description

@melmatsuoka

Since the backup operation this script is effectively “silent” to the user (esp. if the script is run as a background process, cron job, or LaunchAgent on macOS), I find it informative to know how long it took the pg_dump process to complete each backup operation. Particularly since Resolve databases can get ridiculously large if you aren't diligent about housekeeping.

So instead of a log entry that looks like this:

Created Resolve_m9_server_PostgresDump_2017-08-13_200006.sqlc

The entry would look like this:

Created Resolve_m9_server_PostgresDump_2017-08-13_201811.sqlc in 121 seconds

I've implemented this in my fork, and can submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions