{"id":19883355,"url":"https://github.com/steffo99/gestalt-amadeus","last_synced_at":"2026-05-09T02:36:23.554Z","repository":{"id":142839942,"uuid":"614024856","full_name":"Steffo99/gestalt-amadeus","owner":"Steffo99","description":"Backup solution for Docker volumes based on Duplicity","archived":false,"fork":false,"pushed_at":"2025-01-19T13:28:49.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T05:20:53.671Z","etag":null,"topics":["bash","docker","duplicity"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Steffo99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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},"funding":{"ko_fi":"steffo"}},"created_at":"2023-03-14T18:31:31.000Z","updated_at":"2025-01-19T13:28:50.000Z","dependencies_parsed_at":"2025-08-01T14:34:23.826Z","dependency_job_id":"3d5ebd34-aabd-41af-be65-d36eb0a46db9","html_url":"https://github.com/Steffo99/gestalt-amadeus","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/Steffo99/gestalt-amadeus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steffo99%2Fgestalt-amadeus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steffo99%2Fgestalt-amadeus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steffo99%2Fgestalt-amadeus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steffo99%2Fgestalt-amadeus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Steffo99","download_url":"https://codeload.github.com/Steffo99/gestalt-amadeus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steffo99%2Fgestalt-amadeus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32805105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","docker","duplicity"],"created_at":"2024-11-12T17:20:01.206Z","updated_at":"2026-05-09T02:36:23.519Z","avatar_url":"https://github.com/Steffo99.png","language":"Shell","funding_links":["https://ko-fi.com/steffo"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![](.media/icon-128x128_round.png)\n\n# Gestalt Amadeus\n\nBackup solution for Docker volumes based on Duplicity\n\n\u003c/div\u003e\n\n## Usage\n\n\u003e [!NOTE]\n\u003e\n\u003e Other backends are available, but haven't been tested. Please let me know if you want to try using them so I can help you out with setting them up!\n\n### Backup with Google Drive\n\n1. Create a new directory somewhere on your system to use to store certain configuration files; it can be anywhere, but for the purposes of this guide, it'll be referred to as `$ga_config_dir`, and will be located in `/srv/docker/.ga`:\n\n    ```bash\n    export ga_config_dir=\"/srv/docker/.ga\"\n    mkdir --verbose --parents \"$ga_config_dir\"\n    ```\n\n1. Create a new file inside `$ga_config_dir` secret with the name `ga_passphrase.txt`, which will contain the password used to encrypt backups before uploading them to Google Drive:\n\n    ```bash\n    cat \"/dev/urandom\" | LC_ALL=\"C\" tr --delete --complement '[:graph:]' | head --bytes 32 \u003e \"$ga_config_dir/ga_passphrase.txt\"\n    ```\n\n1. [Use the Google Cloud Console to create new OAuth credentials](https://console.cloud.google.com/apis/credentials) for a ***Desktop Application***.\n\n1. Download the resulting JSON credential file, and move it inside `$ga_config_dir` with the name `ga_gdrive_client_secret.json`:\n\n    ```bash\n    mv --verbose --interactive ./client_secret* \"$ga_config_dir/ga_gdrive_client_secret.json\"\n\n1. Create a new Docker volume with the name `ga_cache`, which will be used to temporarily store previous backups:\n\n    ```bash\n    docker volume create \"ga_cache\"\n    ```\n\n1. Create a new Docker volume with the name `ga_credentials`, which will be use to store Google Drive API credentials:\n\n    ```bash\n    docker volume create \"ga_credentials\"\n    ```\n\n1. Create a new directory in Google Drive, open it, and copy the final part of the URL:\n\n    ```text\n    https://drive.google.com/drive/u/0/folders/1_AAAAAAAAAA-BBBBBBBBBBBBBBBBBBBB\n                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                                         copy this part         \n    ```\n\n1. Add your Gestalt Amadeus configuration at the top of your `compose.yml` project:\n\n    ```yaml\n    x-gestalt-amadeus:\n        # Set this to \"restore\" to recover files from the last available backup.\n        x-ga-mode: \u0026ga_mode\n            \"backup\"\n        # The URL where your backups should be uploaded to.\n        # For Google Drive, replace:\n        # - `1_AAAAAAAAAA-BBBBBBBBBBBBBBBBBBBB` with the final part of the URL you've previously copied\n        # - `111111111111-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.apps.googleusercontent.com` with the value of the `.installed.client_id` key of the Google client_secret file you've previously downloaded\n        x-ga-backup-to: \u0026ga_backup_to\n            \"gdrive://111111111111-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.apps.googleusercontent.com/${COMPOSE_PROJECT_NAME}?myDriveFolderID=1_AAAAAAAAAA-BBBBBBBBBBBBBBBBBBBB\"\n        # If you're planning to use ntfy, set this to the full URL of the topic you'd like to receive notifications at.\n        # If you don't want to use ntfy, set this to an empty string, \"\".\n        x-ga-ntfy: \u0026ga_ntfy\n            \"https://ntfy.sh/phil_alerts\"\n        # The path to the `ga_passphrase.txt` file.\n        x-ga-passphrase: \u0026ga_passphrase\n            \"/srv/docker/.ga/ga_passphrase.txt\"\n        # The path to the `ga_gdrive_client_secret.json` file.\n        x-ga-gdrive-client-secret: \u0026ga_gdrive_client_secret\n            \"/srv/docker/.ga/ga_gdrive_client_secret.json\"\n    ```\n\n1. Merge the following keys with the rest of your existent `compose.yml` project:\n\n    ```yaml\n    services:\n        ga:\n            image: \"ghcr.io/steffo99/gestalt-amadeus:2\"\n            restart: unless-stopped\n            network_mode: host\n            stdin_open: true\n            tty: true\n            volumes:\n                - type: bind\n                  source: \".\"\n                  target: \"/mnt\"\n                - type: volume\n                  source: ga_credentials\n                  target: \"/var/lib/duplicity\"\n                - type: volume\n                  source: ga_cache\n                  target: \"/usr/lib/duplicity/.cache/duplicity\"\n            environment:\n                MODE: *ga_mode\n                DUPLICITY_TARGET_URL: *ga_backup_to\n                NTFY: *ga_ntfy\n                NTFY_TAGS: \"host-${HOSTNAME:-${hostname:-undefined}},${COMPOSE_PROJECT_NAME}\"\n                DUPLICITY_PASSPHRASE_FILE: \"/run/secrets/ga_passphrase\"\n                GOOGLE_CLIENT_SECRET_JSON_FILE: \"/run/secrets/ga_gdrive_client_secret\"\n                GOOGLE_CREDENTIALS_FILE: \"/var/lib/duplicity/google_credentials\"\n                GOOGLE_OAUTH_LOCAL_SERVER_HOST: \"localhost\"\n                GOOGLE_OAUTH_LOCAL_SERVER_PORT: \"8080\"\n            secrets:\n                - ga_passphrase\n                - ga_gdrive_client_secret\n    \n    volumes:\n        ga_cache:\n            external: true\n        ga_credentials:\n            external: true\n    \n    secrets:\n        ga_passphrase:\n            file: *ga_passphrase\n        ga_gdrive_client_secret:\n            file: *ga_gdrive_client_secret\n    ```\n\n1. Bring up the Compose project:\n\n    ```bash\n    docker compose up --detach\n    ```\n\n1. Pay attention to the logs; if this is the first container you're setting up Gestalt Automata on the host, you'll be asked to login with Google before the backup can proceed:\n\n    ```bash\n    docker compose logs --follow ga\n    ```\n\n    ```log\n    duplicity-1  | Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth\n    ```\n\n    Complete the authentication to proceed.\n\n    \u003e For authentication to work correctly after [Google's removal of the OOB Flow](https://developers.google.com/identity/protocols/oauth2/resources/oob-migration), your `http://localhost:8080` address needs to match the `http://localhost:8080` of the Gestalt Amadeus container.\n    \u003e \n    \u003e This is not an issue if you can launch a browser on the same machine you're configuring Gestalt Amadeus, but it might be troublesome for non-graphical servers, where this is not possible.\n    \u003e\n    \u003e To apply a quick band-aid to the issue, you can temporarily set up an SSH tunnel towards the server for the duration of the setup process:\n    \u003e\n    \u003e ```bash\n    \u003e ssh -L 8080:8080 yourserver\n    \u003e ```\n\n1. You should be done! Make sure backups are appearing in the Google Drive directory you've configured.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffo99%2Fgestalt-amadeus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteffo99%2Fgestalt-amadeus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffo99%2Fgestalt-amadeus/lists"}