-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for large Postgres files Large Postgres files may pose a challenge for some systems. This change stores the file on disk, compares the filesize with the remote, and adds the local file to the tar. It has error handling to allow a support export to be generated when there are issues with gathering PG logs. * fixes for lint errors * Remove the cat logic for gathering PG logs. Only do streaming. * Create a unique sudirectory in outputDir (matching the unique timestamp) so that local files are logically separate from other files. Adding messaging and error handling so a user understands. * remove extra call to getRemoteFileSize * refactored getRemoteFileSize to use bashCommand to get the filesize * added copyFile function to cat a file contents to a local file * use the copyFile function rather calling manually * added example comment for fileSpecSrc * added comment to copyFile * rename ConvertBytes to convertBytes --------- Co-authored-by: Philip Hurst <[email protected]>
- Loading branch information
1 parent
3a83853
commit edbf76e
Showing
2 changed files
with
209 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters