{"id":15979026,"url":"https://github.com/perry-mitchell/nextcloud-directory-sync","last_synced_at":"2025-06-18T08:38:09.671Z","repository":{"id":74696374,"uuid":"564368181","full_name":"perry-mitchell/nextcloud-directory-sync","owner":"perry-mitchell","description":"Docker app for syncing a single directory from a Nextcloud server","archived":false,"fork":false,"pushed_at":"2022-11-10T18:41:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-22T18:24:25.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/perry-mitchell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-11-10T15:10:37.000Z","updated_at":"2022-11-10T18:41:44.000Z","dependencies_parsed_at":"2023-02-25T07:46:13.304Z","dependency_job_id":null,"html_url":"https://github.com/perry-mitchell/nextcloud-directory-sync","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/perry-mitchell/nextcloud-directory-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fnextcloud-directory-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fnextcloud-directory-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fnextcloud-directory-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fnextcloud-directory-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perry-mitchell","download_url":"https://codeload.github.com/perry-mitchell/nextcloud-directory-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fnextcloud-directory-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260520940,"owners_count":23021716,"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":[],"created_at":"2024-10-07T23:40:44.879Z","updated_at":"2025-06-18T08:38:04.660Z","avatar_url":"https://github.com/perry-mitchell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nextcloud Directory Sync\n\u003e Docker app for syncing a single directory from a Nextcloud server\n\nThis docker application provides a simple interface that allows you to perpetually synchronise a directory from a Nextcloud server to a local directory, mounted using a volume.\n\n## Obtaining the image\n\nPull the latest image to get started: `perrymitchell/nextcloud-directory-sync:latest`. Check it out on [DockerHub](https://hub.docker.com/r/perrymitchell/nextcloud-directory-sync).\n\n## Configuring\n\nFor the app to run successfully, a number of environment variables are required:\n\n| Variable          | Default       | Required  | Description                                       |\n|-------------------|---------------|-----------|---------------------------------------------------|\n| `NC_HOST`         | _None_        | Yes       | The host URL of the target Nextcloud instance.    |\n| `NC_USERNAME`     | _None_        | Yes       | Nextcloud username.                               |\n| `NC_PASSWORD`     | _None_        | Yes       | Nextcloud password.                               |\n| `PATH_LOCAL`      | `/nextcloud`  | No        | The local directory inside the Docker container to sync to. |\n| `PATH_REMOTE`     | `/`           | No        | The remote Nextcloud directory to sync with.      |\n| `PGID`            | `1000`        | No        | Optional group ID for the `nextcloud` user to use for syncing. |\n| `PUID`            | `1000`        | No        | Optional user ID for the `nextcloud` user to use for syncing. |\n| `SYNC_WAIT`       | `60`          | No        | Delay, in seconds, between sync attempts.         |\n\nThere is also an example `.env.example` file, showing overrides.\n\n## Quirks\n\n### Unraid \u0026 Nextcloud database locks\n\nIf you're using this to sync files on Unraid, you may encounter weird SQLite database lock issues if you try to use a volume on `/mnt/user/...`. Use `/mnt/cache` where possible to avoid this.\n\n### Nextcloud: Removing all files hangs\n\nIf you sync a directory and delete all the files, you'll end up with a console message such as `All the files are going to be changed, asking the user`. The application will hang here permanently. Avoid this by creating a sync'd hidden file such as `.ncignore` (must be non-empty) and leave that in the directory at all times.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fnextcloud-directory-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperry-mitchell%2Fnextcloud-directory-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fnextcloud-directory-sync/lists"}