PostgreSQL pg_dump backups via Python
The following scripts backup your PostgreSQL databases via Python using pg_dump. The scripts will then compress the backup via zip. These backup scripts are linux specific. You’ll have to manage…
The following scripts backup your PostgreSQL databases via Python using pg_dump. The scripts will then compress the backup via zip. These backup scripts are linux specific. You’ll have to manage…
The following python script gets all databases from a PostgreSQL server.
Read and Display Postgres configuration information The following script reads the Postgresql configuration file and displays key settings. Results are sent to the console and an outfile. You can also…
Find and read the file using Python The following python script reads mongod.conf file and returns some settings.
Verifying Linux Setting in Python The following Python script checks several Linux settings. Results of the check are written to the console. If the results are within the desired ranges…
The following script uploads files from the first of the month via S3 With Notification Email The following version sends an email with the results There is no error handling…
The following script copies a directory and all of its contents to another directory Call the script like this
Delete backups older than 4 weeks ago The script uses pbm delete-backup and delete-pitr to clean up backups older than 4 weeks. The script then sends an email when complete…
Upload Python Script The following code uploads files and directories via S3. This version gets files and directories created on a Sunday How to call from Command line We can…
The following python script uploads a file and directory via S3. The file and directory must match a certain pattern. If the file or folder do not exist, an error…