Skip to content

Commit e3d0a73

Browse files
committed
Bugfix release v1.2.2
1 parent c02384f commit e3d0a73

File tree

10 files changed

+56
-81
lines changed

10 files changed

+56
-81
lines changed

.gitignore

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

LICENSE.md

100644100755
File mode changed.

amazon-s3-backup/CHANGELOG.md

100755100644
+12-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Changelog
22

3+
## 1.2.2
4+
5+
- Backup Script was running twice since it was still in services.d folder. Removed all unnecessary files.
6+
- Removed unnecassary Executable bits from .md files
7+
- Thanks to [HarryEMartland](https://github.com/HarryEMartland) and [atrepca](https://github.com/atrepca) for contributing.
8+
39
## 1.2.1
10+
411
- Added missing CMD to the Dockerfile. This was reported by several users (Thanks for reporting and being patient with me). I added the CMD so i hope it works now for everyone. If not please create another issue
512

613
## 1.2.0
14+
715
- You can now configure if you want to automatically delete older backups and how many backups you want to keep locally.
8-
* `delete_local_backups` defaults to `true`, which means it will automatically delete older backups and keep `local_backups_to_keep` which defaults to `3`
16+
- `delete_local_backups` defaults to `true`, which means it will automatically delete older backups and keep `local_backups_to_keep` which defaults to `3`
917

1018
## 1.0.0
19+
1120
- Initial release:
12-
* Uses the `aws s3 sync` cli command to sync the local backup folder
13-
* Possibility to configure region, storage class, bucket
21+
- Uses the `aws s3 sync` cli command to sync the local backup folder
22+
- Possibility to configure region, storage class, bucket

amazon-s3-backup/DOCS.md

100755100644
File mode changed.

amazon-s3-backup/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM ${BUILD_FROM}
33

44
ENV LANG C.UTF-8
55

6-
COPY rootfs /
6+
COPY run.sh /
7+
RUN chmod a+x /run.sh
78

89
# add aws-cli and deps
910
RUN apk add -v --update --no-cache \
@@ -15,4 +16,4 @@ RUN apk add -v --update --no-cache \
1516
&& \
1617
pip3 install --upgrade awscli
1718

18-
CMD [ "/etc/services.d/amazon-s3-backup/run" ]
19+
CMD [ "/run.sh" ]

amazon-s3-backup/config.json

+40-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
11
{
2-
"name": "Amazon S3 Backup",
3-
"version": "1.2.1",
4-
"slug": "amazon-s3-backup",
5-
"description": "Sync Backups to your Amazon S3 bucket",
6-
"url": "https://github.com/thomasfr/hass-addons/tree/main/amazon-s3-backup",
7-
"arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
8-
"boot": "manual",
9-
"init": false,
10-
"startup": "once",
11-
"advanced": true,
12-
"hassio_api": true,
13-
"hassio_role": "backup",
14-
"options": {
15-
"aws_access_key": "",
16-
"aws_secret_access_key": "",
17-
"bucket_name": "",
18-
"bucket_region": "eu-central-1",
19-
"storage_class": "STANDARD",
20-
"delete_local_backups": true,
21-
"local_backups_to_keep": 3
22-
},
23-
"schema": {
24-
"aws_access_key": "str",
25-
"aws_secret_access_key": "password",
26-
"bucket_name": "str",
27-
"bucket_region": "list(us-east-2|us-east-1|us-west-1|us-west-2|af-south-1|ap-east-1|ap-southeast-3|ap-south-1|ap-northeast-3|ap-northeast-2|ap-southeast-1|ap-southeast-2|ap-northeast-1|ca-central-1|cn-north-1|cn-northwest-1|eu-central-1|eu-west-1|eu-west-2|eu-south-1|eu-west-3|eu-north-1|sa-east-1|me-south-1|me-central-1)",
28-
"storage_class": "list(STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA|INTELLIGENT_TIERING|GLACIER|DEEP_ARCHIVE)",
29-
"delete_local_backups": "bool",
30-
"local_backups_to_keep": "int"
31-
},
32-
"map": ["backup:rw"]
33-
}
34-
2+
"name": "Amazon S3 Backup",
3+
"version": "1.2.2",
4+
"slug": "amazon-s3-backup",
5+
"description": "Sync Backups to your Amazon S3 bucket",
6+
"url": "https://github.com/thomasfr/hass-addons/tree/main/amazon-s3-backup",
7+
"arch": [
8+
"aarch64",
9+
"amd64",
10+
"armhf",
11+
"armv7",
12+
"i386"
13+
],
14+
"boot": "manual",
15+
"init": false,
16+
"startup": "once",
17+
"advanced": true,
18+
"hassio_api": true,
19+
"hassio_role": "backup",
20+
"options": {
21+
"aws_access_key": "",
22+
"aws_secret_access_key": "",
23+
"bucket_name": "",
24+
"bucket_region": "eu-central-1",
25+
"storage_class": "STANDARD",
26+
"delete_local_backups": true,
27+
"local_backups_to_keep": 3
28+
},
29+
"schema": {
30+
"aws_access_key": "str",
31+
"aws_secret_access_key": "password",
32+
"bucket_name": "str",
33+
"bucket_region": "list(us-east-1|us-east-2|us-west-1|us-west-2|af-south-1|ap-east-1|ap-south-2|ap-southeast-3|ap-southeast-4|ap-south-1|ap-northeast-3|ap-northeast-2|ap-southeast-1|ap-southeast-2|ap-northeast-1|ca-central-1|eu-central-1|eu-west-1|eu-west-2|eu-south-1|eu-west-3|eu-south-2|eu-north-1|eu-central-2|me-south-1|me-central-1|sa-east-1|us-gov-east-1|us-gov-west-1)",
34+
"storage_class": "list(STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA|INTELLIGENT_TIERING|GLACIER|DEEP_ARCHIVE)",
35+
"delete_local_backups": "bool",
36+
"local_backups_to_keep": "int"
37+
},
38+
"map": [
39+
"backup:rw"
40+
]
41+
}

amazon-s3-backup/icon.png

100644100755
File mode changed.

amazon-s3-backup/rootfs/etc/services.d/amazon-s3-backup/finish

-5
This file was deleted.

amazon-s3-backup/rootfs/etc/services.d/amazon-s3-backup/run

-38
This file was deleted.

repository.json

100644100755
File mode changed.

0 commit comments

Comments
 (0)