Hey,

would be glad to get feedback on this. As I'm planning to work on backup/restore for my Ansible scripts anyway I could also contribute to the gnuhealth-control command meanwhile.

In addition to the last mail: For the database I think of saving at least:

- a database dump

- configuration files postgresql.conf, pg_hba.conf and maybe more / the whole folder

Best

Gerald


On 28.02.22 15:35, Gerald Wiese wrote:
Hey,

I was wondering if the way backups are managed with gnuhealth-control could be improved.

Currently there are three archives generated from:

- database

- home directory

- database & home directory together

First of all we could consider differentiating application and database as those could be on different systems. Thus we could split the option "backup" into "backup-database" and "backup-application".

Regarding the backup of the application I think we should not just copy the home directory and every python library. What I guess is necessary to backup is:

- Server version

- List of activated modules (how to get this?)

- Attachment folder

- Configuration file(s)

What could be useful as well:

- OS version

- pip freeze

- systemd file

What do you think about it?

Best

Gerald



Reply via email to