Commit Graph
5 Commits
Author SHA1 Message Date
pappapisshu cb295a4bc2 Merge remote-tracking branch 'upstream/main' 2023-01-15 16:05:40 +01:00
pappapisshu 65e6469273 Change to the structure of the custom.yaml file
The structure of the custom.yaml file has been modified in order to simplify
the reading and maintainability of the backup.py code and definitively fix
problems related to backups on S3-compatible services not provided by AWS.
In addition to improved code readability, it is now verified that backup
also works on MinIO, solving issue #717.
2023-01-13 00:56:36 +01:00
pappapisshu da06fcbb09 No impact in case the region is not necessary
For users who have been using mail-in-a-box from before version v60
and who do not need the region parameter in duplicity configuration,
the backup continues to work without impacts.
2022-12-23 13:39:12 +01:00
pappapisshu e6c12d9ac7 Backup configuration saving mechanism is fixed
The region value used for backups on S3-compatible services
is now saved correctly even if the user changes the configuration
from backup of type S3 to another.
2022-12-23 06:39:36 +01:00
pappapisshu 1fc33a3933 Allow to backup on any S3-compatible service
Starting from the versions subsequent to the v57a, the default backend
of duplicity for backups to S3-compatible services is boto3
which requires the indication of the region (--S3-region-name)
for most cases in which the S3 service is not provided by AWS.
Thanks to this intervention, the region of the S3 service
is provided as a parameter to duplicity and is stored in the
/home/user-data/backup/custom.yaml file, like any other backup
configuration parameters.
Moreover, the list of the regions shown to the user in the drop-down
menu in the backup configuration panel is replaced with
a normal text field, since the list included the AWS regions only
and therefore was not usable in all other cases.

See issue #2200.
2022-12-23 01:08:35 +01:00