Skip to content

Commit 10d36e1

Browse files
committed
Release 2.6-7.6.1 - See CHANGELOG.md
1 parent 9f05d5e commit 10d36e1

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.6-7.6.1 2023-05-31 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Fix for backups not being created in tar format
5+
- Transform config and data files into their own folder in tar file for better extraction
6+
7+
18
## 2.6-2.6-7.6 2023-05-10 <dave at tiredofit dot ca>
29

310
### Changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,17 @@ Builds of the image are available on [Docker Hub](https://hub.docker.com/r/tired
7474
```bash
7575
docker pull docker.io/tiredofit/openldap:(imagetag)
7676
```
77+
7778
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-openldap/pkgs/container/docker-openldap)
7879

7980
```
8081
docker pull ghcr.io/tiredofit/docker-openldap:(imagetag)
8182
```
8283

83-
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-tiredofdit/pkgs/container/docker-tiredofdit)
84+
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-tiredofdit/pkgs/container/docker-tiredofit)
8485

8586
```
86-
docker pull ghcr.io/tiredofit/docker-tiredofdit:(imagetag)
87+
docker pull ghcr.io/tiredofit/docker-tiredofit:(imagetag)
8788
```
8889

8990
The following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md):
@@ -101,7 +102,7 @@ Images are built primarily for `amd64` architecture, and may also include builds
101102

102103
### Quick Start
103104

104-
* The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [docker-compose.yml](examples/docker-compose.yml) that can be modified for development or production use.
105+
* The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [compose.yml](examples/compose.yml) that can be modified for development or production use.
105106

106107
* Set various [environment variables](#environment-variables) to understand the capabilities of this image.
107108
* Map [persistent storage](#data-volumes) for access to configuration and data files for backup.
File renamed without changes.

install/etc/services.available/20-openldap-backup/run

+10-9
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,27 @@ compression() {
6464
case "${BACKUP_COMPRESSION,,}" in
6565
bz*)
6666
print_notice "Compressing backup with bzip2"
67-
target=${target}.bz2
68-
tar --use-compress-program="${bzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data
67+
target=${target}.tar.bz2
68+
tar --use-compress-program="${bzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data --transform "s|config|${now}-openldap_${CONTAINER_NAME}/config|" --transform "s|data|${now}-openldap_${CONTAINER_NAME}/data|"
6969
;;
7070
gz*)
7171
print_notice "Compressing backup with gzip"
72-
target=${target}.gz
73-
tar --use-compress-program="${gzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data
72+
target=${target}.tar.gz
73+
tar --use-compress-program="${gzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data --transform "s|config|${now}-openldap_${CONTAINER_NAME}/config|" --transform "s|data|${now}-openldap_${CONTAINER_NAME}/data|"
7474
;;
7575
"none" | "false")
76-
tar -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data
76+
target=${target}.tar
77+
tar -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data --transform "s|config|${now}-openldap_${CONTAINER_NAME}/config|" --transform "s|data|${now}-openldap_${CONTAINER_NAME}/data|"
7778
;;
7879
xz*)
7980
print_notice "Compressing backup with xzip"
80-
target=${target}.xz
81-
tar --use-compress-program="${xzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data
81+
target=${target}.tar.xz
82+
tar --use-compress-program="${xzip} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data --transform "s|config|${now}-openldap_${CONTAINER_NAME}/config|" --transform "s|data|${now}-openldap_${CONTAINER_NAME}/data|"
8283
;;
8384
zst*)
8485
print_notice "Compressing backup with zstd"
85-
target=${target}.zst
86-
tar --use-compress-program="${zstd} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data
86+
target=${target}.tar.zst
87+
tar --use-compress-program="${zstd} " -cf "${BACKUP_TEMP_LOCATION}"/"${target}" -C "${BACKUP_TEMP_LOCATION}" config data --transform "s|config|${now}-openldap_${CONTAINER_NAME}/config|" --transform "s|data|${now}-openldap_${CONTAINER_NAME}/data|"
8788
;;
8889
esac
8990
}

0 commit comments

Comments
 (0)