Commit Graph

71 Commits

Author SHA1 Message Date
Shakar Bakr
3c9af7f6c5
use go-cron
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-29 16:56:47 +03:00
Shakar Bakr
7db86e3d72
Refactor environment variable definitions in Dockerfile for consistency
- Standardized formatting of environment variable definitions by removing unnecessary spaces.
- Ensured clarity and uniformity in the Dockerfile for better readability and maintenance.

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-27 14:07:50 +03:00
Shakar Bakr
90c114c647
Add example ConfigMap and Secret for MSSQL backup configuration
- Introduced `k8s-mssql-configmap-example.yaml` and `k8s-mssql-secret-example.yaml` to provide templates for non-sensitive and sensitive configurations, respectively.
- Updated `README.md` and `k8s-statefulset-test.yaml` to reference the new example files.
- Created `k8s-statefulset-with-sidecar.yaml` for deploying MSSQL with a backup sidecar, enhancing the backup functionality.

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-27 13:22:19 +03:00
Shakar Bakr
a9c7cc4be3
Rename MSSQL_BACKUP_DIR to MSSQL_DATA_DIR across configuration files and scripts for consistency. Update README and test scripts to reflect the new variable name. This change ensures clarity in the purpose of the directory used for MSSQL data and backups.
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-27 12:29:01 +03:00
Shakar Bakr
845507c728
Refactor test scripts and README for MSSQL backup functionality
- Updated README.md to reflect new script paths for MSSQL tests.
- Added new test scripts for Kubernetes and Docker Compose environments, including setup for MinIO.
- Introduced k8s-statefulset-test.yaml for deploying MSSQL with a backup sidecar.
- Created setup-minio-k8s.sh for automated MinIO deployment in Kubernetes.
- Enhanced test-mssql-k8s-with-minio.sh to streamline the testing process with MinIO.
- Added comprehensive test-mssql-k8s.sh for validating MSSQL backup and restore operations.
- Included test-mssql.sh for Docker Compose testing of MSSQL backup functionality.

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-23 15:11:27 +03:00
Shakar Bakr
7188e45927
Add mssql to the supported databases
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2025-10-23 14:51:33 +03:00
ccf66241fd
Remove db.dump file after restoring database in restore_mariadb function in helpers.sh 2025-03-24 14:22:58 +03:00
8683ec9f42
Add MARIADB_EXTRA_OPTS environment variable and update backup/restore functions in helpers.sh to utilize it 2025-03-24 14:07:35 +03:00
b04f30abc5
Update environment variables and scripts for MariaDB support, replacing MySQL references in Dockerfile, env.sh, and helpers.sh. 2025-03-24 14:05:54 +03:00
3b4ad0472a
Remove go-cron 2025-03-24 13:46:25 +03:00
3794739e13
Update Alpine version to 3.21 in Dockerfile, docker-compose.yaml, and README; adjust environment variables in docker-compose.yaml 2025-03-24 13:24:48 +03:00
18d75e9420
Update build-and-push-images.yml 2025-03-24 13:17:15 +03:00
701fb290c2
Fixed restore 2023-08-10 15:11:16 +03:00
a683adc6a5
Use one image for all databases 2023-08-10 15:09:58 +03:00
f2ee85a8ea
Checkout repo 2023-08-10 14:53:34 +03:00
c62630f23b
Updated build-push-action to v4 2023-08-10 10:20:38 +03:00
943f04209e
Add mysql support 2023-08-10 10:16:56 +03:00
Elliott Shugerman
2564496912 readme updates [skip-ci] 2023-01-29 12:23:42 -05:00
Elliott Shugerman
16df9b3980 add postgres v15, drop postgres v10 2022-11-29 00:50:08 -05:00
Elliott Shugerman
5f68eb82b3 minor typos 2022-09-25 13:57:55 -04:00
Elliott Shugerman
53c5ca4b11 share common env var code 2022-09-25 13:55:47 -04:00
Elliott Shugerman
abbe4b3703 comments 2022-09-25 13:46:26 -04:00
Elliott Shugerman
9f8d2acb30 add .dir-locals.el 2022-09-25 13:46:26 -04:00
Elliott Shugerman
9fa6cece9d remove weird bit from POSTGRES_PASSWORD error message in restore.sh 2022-09-25 13:46:26 -04:00
Elliott Shugerman
ea7d8e77bb make access id/key optional (closes #21) 2022-09-25 13:46:26 -04:00
Elliott Shugerman
60c0ff5fc4 readme stuff [skip ci] 2022-07-26 09:12:27 -04:00
Jizu Sun
d5a7945317
fix S3_ENDPOINT and BACKUP_KEEP_DAYS compatibility (#19) 2022-07-25 16:33:40 -07:00
Sam Weston
4ac3278ffb
Add ARM64 Builds (#15)
* Add ARM64 builds

* Move to a go-cron fork with arm64 support

* Use TARGETARCH directly in the script

* Use buildkit for docker build in readme
2022-07-13 22:16:28 -07:00
Elliott Shugerman
600617f9ba bump alpine version for pg v14 2022-07-03 13:47:37 -04:00
Elliott Shugerman
8bf8915f5f fix compose example in readme 2022-07-03 13:47:02 -04:00
Elliott Shugerman
3f82b5fc12 add docker-compose.yaml for development/testing 2022-07-03 13:43:54 -04:00
Elliott Shugerman
0874c2abfb add build command to readme [skip ci] 2022-07-03 12:29:47 -04:00
Elliott Shugerman
23accb3894
readme tweaks [skip-ci] 2022-04-15 10:30:39 -07:00
Elliott Shugerman
1acb65132c
Merge pull request #14 from fulminant/master
Added BACKUP_KEEP_DAYS option.
2022-04-13 21:16:10 -04:00
Dmitriy Haidiuk
2b28f9f0ec Updated removing old backups logic. 2022-04-13 11:16:23 +03:00
Dmitriy Haidiuk
f08931bf80 Updated README file. 2022-04-13 00:34:08 +03:00
Dmitriy Haidiuk
2e45dc55b8 Updated backup remove cron date variable. 2022-04-13 00:21:34 +03:00
Dmitriy Haidiuk
b1b12e8a05 Updated backup remove cron date variable. 2022-04-13 00:11:32 +03:00
Dmitriy Haidiuk
1ea38070f6 Added auto-remove for old backups. 2022-04-12 21:39:51 +03:00
Elliott Shugerman
80b1fd7936 whitespace [skip ci] 2021-12-12 14:05:27 -05:00
Elliott Shugerman
1cc51332a0 remove dockerhub build code 2021-12-12 14:01:22 -05:00
Elliott Shugerman
1677fb8e76 whoops 2021-12-12 13:59:19 -05:00
Elliott Shugerman
ba4bd19d23 tag images properly 2021-12-12 13:58:06 -05:00
Elliott Shugerman
25f6415c1f quote versions 2021-12-12 13:54:57 -05:00
Elliott Shugerman
136b59bcf2 use strategy.matrix to build multiple versions 2021-12-12 13:48:42 -05:00
Elliott Shugerman
10ef696200 fix tag name 2021-12-12 13:32:35 -05:00
Elliott Shugerman
769d8cc3ba first stab at using github actions 2021-12-12 13:29:02 -05:00
Elliott Shugerman
36d5b2888c add support for postgres v14, drop v9 2021-12-07 23:08:02 -05:00
Elliott Shugerman
8ef632ab84 breaking change: if SCHEDULE is not set, run backup and then exit 2021-12-07 23:08:02 -05:00
Elliott Shugerman
87d335f46d
readme [skip ci] 2021-06-22 08:32:05 -07:00