0.1.2 • Published 6 years ago

pgkup v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

pgkup

Usage

npm i
npm start config.json

Config

Config file should include a valid JSON object of this kind:

{
  "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

0.1.2

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago