Skip to content

Instantly share code, notes, and snippets.

View ict's full-sized avatar

DK ict

  • Munich, Germany
View GitHub Profile
@ict
ict / add_borg14.diff
Last active May 28, 2025 16:23
A shell script that monitors the Nextcloud-AIO mastercontainer and patches the `containers.json` file so a custom BORG_REMOTE_PATH environment variable is injected into the backup container. Adapt the diff with your own to make other arbitrary changes.
534c534,535
< "BORG_RETENTION_POLICY=%BORG_RETENTION_POLICY%"
---
> "BORG_RETENTION_POLICY=%BORG_RETENTION_POLICY%",
> "BORG_REMOTE_PATH=borg14"