{"id":21997574,"url":"https://github.com/stephane-klein/clean-gitlab-backup","last_synced_at":"2026-04-16T12:35:58.544Z","repository":{"id":99039596,"uuid":"247287259","full_name":"stephane-klein/clean-gitlab-backup","owner":"stephane-klein","description":"docker-image to keep only x GitLab backup in S3 compatible Object Storage.","archived":false,"fork":false,"pushed_at":"2020-03-14T14:19:00.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T11:31:10.890Z","etag":null,"topics":["backup","docker","gitlab"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephane-klein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-14T14:01:36.000Z","updated_at":"2020-03-14T14:19:02.000Z","dependencies_parsed_at":"2023-04-16T09:59:07.458Z","dependency_job_id":null,"html_url":"https://github.com/stephane-klein/clean-gitlab-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fclean-gitlab-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fclean-gitlab-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fclean-gitlab-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fclean-gitlab-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephane-klein","download_url":"https://codeload.github.com/stephane-klein/clean-gitlab-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056902,"owners_count":20553854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","docker","gitlab"],"created_at":"2024-11-29T22:17:13.554Z","updated_at":"2026-04-16T12:35:53.519Z","avatar_url":"https://github.com/stephane-klein.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keep only x GitLab backup in S3 compatible Object Storage\n\ndocker-image to keep only x GitLab backup in S3 compatible Object Storage.\n\nThis tool will be unnecessary when [GitLab Issue #26246](https://gitlab.com/gitlab-org/gitlab/-/issues/26246) will be closed.\n\n## How to use it\n\nPut this content to `docker-compose.yml` and fill variable env values:\n\n```\nversion: '3.7'\nservices:\n    clean-gitlab-backup:\n        image: stephaneklein/clean-gitlab-backup\n        environment:\n            START_EVERY_DAY_AT_UTC: '02:00'\n            NUMBER_BACKUP_TO_KEEP: 2\n            S3_REGION_NAME: 'fr-par'\n            S3_ENDPOINT_URL: https://s3.fr-par.scw.cloud\n            S3_AWS_ACCESS_KEY_ID: ....\n            S3_AWS_SECRET_ACCESS_KEY: ....\n            S3_BUCKET_NAME: ...\n```\n\nStart it:\n\n```\n$ docker-compose up -d\n$ docker-compose logs -f\n2020-03-14 13:54:08,343 [INFO] clean-gitlab-backup started: Running job Every 1 day at 02:00 UTC\n2020-03-14 13:55:00,454 [INFO] Start GitLab old backup cleaning...\n2020-03-14 13:55:00,649 [INFO] GitLab old backup clean done\n```\n\n## How to contribute\n\n```\n$ git clone git@github.com:stephane-klein/clean-gitlab-backup.git\n$ cd clean-gitlab-backup\n$ docker-compose up -d\n$ docker-compose exec clean-gitlab-backup bash\n# /src/main.py\n```\n\nNow you can update `main.py` file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fclean-gitlab-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephane-klein%2Fclean-gitlab-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fclean-gitlab-backup/lists"}