sebastianfeldmann / phpbu

PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
https://phpbu.de
Other
1.29k stars 110 forks source link

Set parameters for gpg encryption #372

Closed veebkolm closed 5 months ago

veebkolm commented 5 months ago

It seems that gpg encryption does not work as per #369. Seems that the gpg executable wasn't given any parameters at all. So I added those. Also modified the user parameter, which needs an username (email) of the gpg key in your keychain that you intend to encrypt the backup with.

Be noted that the key should be trusted, otherwise the gpg prompts for input, letting the backup hang. Maybe all keys could be automatically trusted with some parameter, or phpbu should check that the key is trusted beforehand.

Also, gpg by default compresses the file. That could also be configured.