mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-22 05:33:53 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83693d35b2 | ||
|
|
52b726c821 | ||
|
|
5c43b3c907 |
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
||||
examples/
|
||||
@@ -1,3 +1,9 @@
|
||||
## 3.3.4 2022-06-03 <rozdzynski@github>
|
||||
|
||||
### Fixed
|
||||
- S3 backups failing with special characters in filename
|
||||
|
||||
|
||||
## 3.3.3 2022-05-24 <dave at tiredofit dot ca>
|
||||
|
||||
### Added
|
||||
|
||||
@@ -446,7 +446,7 @@ cleanup_old_data() {
|
||||
s3_olderthan=$(echo $(( $(date +%s)-${DB_CLEANUP_TIME}*60 )))
|
||||
if [[ $s3_createdate -le $s3_olderthan ]] ; then
|
||||
s3_filename=$(echo $s3_file | awk {'print $4'})
|
||||
if [ $s3_filename != "" ] ; then
|
||||
if [ "$s3_filename" != "" ] ; then
|
||||
print_debug "Deleting $s3_filename"
|
||||
silent aws ${PARAM_AWS_ENDPOINT_URL} s3 rm s3://${S3_BUCKET}/${S3_PATH}/${s3_filename} ${s3_ssl} ${s3_ca_cert} ${S3_EXTRA_OPTS}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user