k0lter / autopostgresqlbackup

Automated tool to make periodic backups of PostgreSQL databases
52 stars 17 forks source link

Command line option to set backup dir missing #32

Closed arcterex closed 6 months ago

arcterex commented 6 months ago

In version 1.0 (possibly the earlier fork) there is an option for passing -b on the command line to allow easy setting of the backup directory if you're doing multiple backups. This seems to be missing and it'd be great to have it back. I currently am running a system that backs up several databases from different servers, and have a cronjob that is basically

autopostgresqlbackup -h server1.com -b /backup/server1
autopostgresqlbackup -h server2.com -b /backup/server2
[...]

Any chance this can be added?

arcterex commented 6 months ago

Actually I think these are options that I added on my own fork ... :facepalm:

I'll set these up and make a PR in case it's useful to others.