Commit Graph
12 Commits
Author SHA1 Message Date
pappapisshu d1f21d601e The load_ssh_private_key() function not used anywhere is removed. 2023-01-30 21:24:57 +01:00
pappapisshu 35d97fb767 The function is imported and called consistently with all the others. 2023-01-30 21:09:41 +01:00
pappapisshu 65f2fc5184 An unnecessary comment is removed. 2023-01-30 21:02:49 +01:00
pappapisshu a42f5366d6 The mode of management/backup.py is changed back to 755. 2023-01-30 20:58:34 +01:00
pappapisshu 14852d3fe7 Merge remote-tracking branch 'upstream/main' 2023-01-29 08:34:06 +01:00
pappapisshu b9fb433b0e Merge remote-tracking branch 'upstream/main' 2023-01-22 14:23:12 +01:00
pappapisshu 2abaf64c43 Merge remote-tracking branch 'upstream/main' 2023-01-15 16:48:00 +01:00
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