Commit Graph

30 Commits

Author SHA1 Message Date
atcommander 7313a50839 Fixed issue with tracking how many weekly and monthly backups should be kept 2022-08-20 11:55:57 +02:00
atcommander 74b7f40483 Removed unneeded comments
Fixed the handling of when not enough backups have been created
Changed the no flags behaviour to create and cleanup backups
2022-08-20 11:55:45 +02:00
atcommander d1793740b3 Rewritten to breakdown the script into specific functions
Added monthly backups that are only taken once a month
Added weekly backups that are only taken once a week
Added backup deletion protection when backups are failing to be taken
Added flags so that tasks can be run separately from each other
Added the ability to choose whether backups are actually deleted or a dry run is performed
Removed last backup folder and latest backup symbolic links
2022-08-20 11:55:01 +02:00
PedroCapdevila 130e5a3aa0 Fix delete old backups in folder last 2022-04-05 14:00:31 -03:00
Pau Rodriguez-Estivill bf074fcefb Fix pg_dumpall error detection 2022-02-26 19:33:24 +01:00
Pau Rodriguez-Estivill 1dd8f3af7f Implement latest symlink #59 2022-02-26 17:33:40 +01:00
Pau Rodriguez-Estivill b6163ee56a Limit last backups by minutes 2022-02-26 17:26:58 +01:00
Pau Rodriguez-Estivill f97585e5ef Improve compression speed #43 2021-02-19 19:16:25 +01:00
Pau Rodriguez-Estivill 393147d563 Added compression support for pg_dumpall (#31) 2020-09-02 18:56:13 +02:00
Pau Rodriguez-Estivill 7e40b9cf25 Fix pg_dumpall database parameter (#31) 2020-09-01 18:10:07 +02:00
Pau Rodriguez-Estivill 5d33982057 Add support for cluster fixes issue #30 2020-08-20 20:33:32 +02:00
Pau Rodriguez-Estivill bdc9d975dd Add support for PGPASSFILE for clusters #30 2020-08-20 20:33:32 +02:00
Pau Rodriguez-Estivill a01eae32be Allow to dump with -Fd fixing issue #28 2020-08-20 20:33:32 +02:00
Werner Robitza 0307921e79 change wording
The backup is not uploaded anywhere, it is just created
2020-03-26 09:47:46 +01:00
Pau Rodriguez-Estivill 6773819952 Style update 2019-03-26 16:06:32 +01:00
Pau Rodriguez-Estivill 09dfc24fa6 Fix #17 issue handling _FILE env vars 2019-03-26 16:02:34 +01:00
Pau Rodriguez-Estivill 681e358069 Moved and user to env (#15) and code clean from PR #16. 2019-03-25 13:59:08 +01:00
Jonas Thelemann 10043a3d68 Add _FILE Support For User And Databases 2019-03-22 14:49:32 +01:00
PauRE e647728b2a Added verbose 2019-03-04 10:51:55 +01:00
Raik Bieniek 83479c1a27 Make cleanup work when multiple databases are specified. #8 2019-03-04 08:14:48 +01:00
Pau Rodriguez-Estivill c78f5ac3de Fix syn error. Closes #7 2018-07-03 00:16:35 +02:00
Pau Rodriguez-Estivill df96579ec5 Style fix 2018-06-30 14:38:47 +02:00
Pau Rodriguez-Estivill 78f2fae1dd Fixed password file errors 2018-06-30 14:38:17 +02:00
PauRE c392a84346 Merge pull request #6 from capnis/master
Add support for docker secrets
2018-06-30 14:18:55 +02:00
Pau Rodriguez-Estivill b74f2182d9 Added support for multiple databases. Closes #1 2018-06-30 14:07:22 +02:00
capnis fd83ad1ed3 Add support for docker secrets
Check if password file ENV variable POSTGRES_PASSWORD_FILE is set (for use with docker secrets, point this to /run/secrets/<name of secret>). If it is not set, fallback to POSTGRES_PASSWORD ENV variable.
2018-06-30 11:15:58 +03:00
Pau Rodriguez-Estivill cb81b30e9c Updated to use postgres image. 2016-10-28 17:01:50 +02:00
Pau Rodriguez-Estivill a7e9ea29a4 Changed to use POSTGRES_DB. 2016-10-28 15:25:51 +02:00
Pau Rodriguez-Estivill 3395f51c5d Fixed permisions. 2016-10-28 15:20:36 +02:00
Pau Rodriguez-Estivill 96c02aafe0 Initial commit. 2016-10-28 14:58:34 +02:00