{"id":21092344,"url":"https://github.com/passivelemon/terraria-backup-docker","last_synced_at":"2026-04-14T06:33:58.591Z","repository":{"id":240448973,"uuid":"802657769","full_name":"PassiveLemon/terraria-backup-docker","owner":"PassiveLemon","description":"Side-car Docker container to backup terraria-docker","archived":false,"fork":false,"pushed_at":"2026-02-28T20:11:28.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-28T23:25:53.272Z","etag":null,"topics":["backup","docker","docker-compose","terraria","terraria-server","tmodloader","tmodloader-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PassiveLemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-18T22:38:14.000Z","updated_at":"2026-02-28T20:11:32.000Z","dependencies_parsed_at":"2024-08-17T20:22:58.589Z","dependency_job_id":"6fbdef7b-948f-412a-8354-b2d2159f3226","html_url":"https://github.com/PassiveLemon/terraria-backup-docker","commit_stats":null,"previous_names":["passivelemon/terraria-backup-docker"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/PassiveLemon/terraria-backup-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassiveLemon%2Fterraria-backup-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassiveLemon%2Fterraria-backup-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassiveLemon%2Fterraria-backup-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassiveLemon%2Fterraria-backup-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PassiveLemon","download_url":"https://codeload.github.com/PassiveLemon/terraria-backup-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassiveLemon%2Fterraria-backup-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","docker-compose","terraria","terraria-server","tmodloader","tmodloader-server"],"created_at":"2024-11-19T21:53:32.646Z","updated_at":"2026-04-14T06:33:58.586Z","avatar_url":"https://github.com/PassiveLemon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [terraria-backup-docker](https://github.com/PassiveLemon/terraria-backup-docker) \u003c/br\u003e\n\nSide-car Docker container to backup [terraria-docker](https://github.com/PassiveLemon/terraria-docker).\n\n\u003e [!WARNING]\n\u003e This is container alone is NOT a substitute for a proper backup solution. If losing data would cause you trouble, please, take proper care of it.\n\n# Quick setup\n1. Mount your Terraria world directory.\n2. Run the container: \u003cb\u003e(Make sure to modify any values that you need.)\u003c/b\u003e\n  - `docker run -d --name terraria-backup -v /opt/TerrariaServer/Worlds/:/opt/terraria-backup/worlds/ passivelemon/terraria-backup-docker:latest`\n\n# Setting up the container\nThis will loop over all worldnames in the world directory and back up the world files associated with that name. The backups are placed in a Backups subdirectory in the same directory as the world files.\n\n## Environment variables\n| Variable | Options | Default | Details |\n|:-|:-|:-|:-|\n| `PUID` | `integer` | `1000` | The UID to run the script with. |\n| `PGID` | `integer` | `1000` | The GID to run the script with. |\n| `CRONTIME` | `crontime (* * * * *)` | `0 1 * * * (Every day at 1 AM)` | The cron time that the container follows for the backup schedule. |\n| `STARTTRIGGER` | `boolean` | `0` | Whether to run the backup upon container start. |\n| `METHOD` | `cp` `tar` `zip` `7zip` | `cp` | The method of storage to use when backing up. More details below. |\n| `ROTATIONS` | `integer` | `5` | How many backups to rotate through. |\n\n| Method | Function |\n|:-|:-|\n| `cp` | Copy to backup location. This is the default. |\n| `tar` | Archive (with gzip) to backup location. |\n| `zip` | Zip to backup location. |\n| `7zip` | 7Zip to backup location. |\n\n### Docker run \u003c/br\u003e\n```\ndocker run -d --name \u003ccontainer name\u003e -v \u003cworld dir\u003e:/opt/terraria-backup/config/ passivelemon/terraria-backup-docker:latest\n```\n\n### Docker Compose\n```yml\nservices:\n  terraria-backup-docker:\n    image: passivelemon/terraria-backup-docker:latest\n    container_name: terraria-backup-docker\n    volumes:\n      - \u003cworld dir\u003e:/opt/terraria-backup/worlds/\n```\n\n## Examples \u003c/br\u003e\n### Docker run\n```\ndocker run -d --name terraria-backup-docker -v /opt/terrariaServer/Worlds/:/opt/terraria-backup/config/ -e METHOD=\"tar\" -e STARTTRIGGER=\"1\" passivelemon/terraria-backup-docker:latest\n```\n\n### Docker compose\n```yml\nservices:\n  terraria-backup-docker:\n    image: passivelemon/terraria-backup-docker:latest\n    container_name: terraria-backup-docker\n    volumes:\n      - /opt/terrariaServer/Worlds/:/opt/terraria-backup/worlds/\n    environment:\n      METHOD: 'tar'\n      STARTTRIGGER: '1'\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassivelemon%2Fterraria-backup-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassivelemon%2Fterraria-backup-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassivelemon%2Fterraria-backup-docker/lists"}