{"id":18843042,"url":"https://github.com/cyberdns/vaultwarden-backup-container","last_synced_at":"2026-05-05T04:05:31.408Z","repository":{"id":229317918,"uuid":"776427894","full_name":"CyberDNS/vaultwarden-backup-container","owner":"CyberDNS","description":"A secure and efficient solution for backing up and restoring self-hosted Vaultwarden data, ensuring access to critical backup passwords even in case of server loss. ","archived":false,"fork":false,"pushed_at":"2024-03-23T13:40:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T12:18:35.116Z","etag":null,"topics":["backup","data-recovery","docker","password-management","security","self-hosted","vaultwarden"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyberDNS.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}},"created_at":"2024-03-23T13:34:32.000Z","updated_at":"2024-03-23T13:37:40.000Z","dependencies_parsed_at":"2024-03-23T14:49:25.937Z","dependency_job_id":null,"html_url":"https://github.com/CyberDNS/vaultwarden-backup-container","commit_stats":null,"previous_names":["cyberdns/vaultwarden-backup-container"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDNS%2Fvaultwarden-backup-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDNS%2Fvaultwarden-backup-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDNS%2Fvaultwarden-backup-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberDNS%2Fvaultwarden-backup-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyberDNS","download_url":"https://codeload.github.com/CyberDNS/vaultwarden-backup-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780118,"owners_count":19695734,"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","data-recovery","docker","password-management","security","self-hosted","vaultwarden"],"created_at":"2024-11-08T02:56:26.544Z","updated_at":"2026-01-31T00:30:18.429Z","avatar_url":"https://github.com/CyberDNS.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vaultwarden Backup Docker Container\n\nThis repository contains the necessary files to create a Docker container for backing up Vaultwarden data. Vaultwarden is an open-source project that provides a self-hosted, web-based password management service. This backup solution utilizes Docker to ensure your Vaultwarden data is securely backed up and can be restored with ease.\n\nI developed this repository to address a specific challenge with my self-hosted Vaultwarden setup: it contains the passwords to my backups. Recognizing the risk of losing access to my entire server and thereby to my cloud-stored backups, I sought an easy and reliable method to periodically clone my Vaultwarden data to my laptop. This ensures that, even in the event of server access loss, I retain the ability to decrypt my backups stored in the cloud.\n\n## Repository Contents\n\n- **Dockerfile**: Specifies the Docker container configuration, ensuring Vaultwarden data is properly placed within the container.\n- **generate-image.sh**: A script to facilitate the building of the Docker image with the latest Vaultwarden data from a specified remote location.\n- **serve.sh**: A script to run the Docker container, making the Vaultwarden backup available.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n- Docker\n- Bash\n- SCP (for the `generate-image.sh` script)\n\n## Usage\n\n### Building the Docker Image\n\n1. Ensure you have SSH access to the host where your Vaultwarden data is stored.\n2. Run the `generate-image.sh` script with the appropriate parameters:\n\n```bash\nchmod +x *.sh\n\n./generate-image.sh user@host path/to/vaultwarden/data\n```\n\nThis script will:\n\n* Securely copy the Vaultwarden data from the specified remote location.\n* Build a Docker image containing the Vaultwarden data.\n* __Tag__ the image with both the __current date__ and __latest__.\n\n### Serving the Backup\nTo serve the backup, simply execute the serve.sh script:\n\n```bash\n./serve.sh\n```\n\nThis will:\n\n* Stop any previously running container named vaultwarden-backup.\n* Remove any previous container with the same name.\n* Run a new container, exposing the service on port __8080__.\n\nThe you can access you vault locally on http://localhost:8080","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberdns%2Fvaultwarden-backup-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberdns%2Fvaultwarden-backup-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberdns%2Fvaultwarden-backup-container/lists"}