https://github.com/streamer45/pgkup
A minimalistic PostgreSQL backup utility
https://github.com/streamer45/pgkup
backup minimalist postgresql utility
Last synced: 5 months ago
JSON representation
A minimalistic PostgreSQL backup utility
- Host: GitHub
- URL: https://github.com/streamer45/pgkup
- Owner: streamer45
- License: mit
- Created: 2017-02-01T09:24:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T15:24:19.000Z (over 8 years ago)
- Last Synced: 2025-10-22T03:55:34.816Z (8 months ago)
- Topics: backup, minimalist, postgresql, utility
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pgkup
## Usage
```
npm i
npm start config.json
```
## Config
Config file should include a valid JSON object of this kind:
```json
{
"db": "mydb",
"path": "/home/streamer45/backups",
"backups": {
"hours": 24,
"days": 7,
"weeks": 4,
"months": 12
}
}
```
which translated means: backup mydb to /home/streamer45/backups and keep the last 24 hourly backups, the last 7 daily backups, the last 4 weekly backups and the last 12 monthly backups on a rolling basis.
### Note
The script should be run at least every hour (if you want hourly backups) via a crond rule or a systemd timer for example.
## License
MIT