# Nextcloud Sync

Nextcloud Sync is a minimal, security-hardened Docker container that automatically syncs a local folder with your Nextcloud server using the official nextcloudcmd client. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2434/nextcloud-sync

## Description

Nextcloud Sync is a minimal, security-hardened Docker container that automatically syncs a local folder with your Nextcloud server using the official nextcloudcmd client. It runs continuously at a configurable interval or as a one-off job, retries temporary network or server failures automatically, and executes as a non-root user on a lean Debian Trixie base. It's aimed at Unraid and other Docker users who want dependable, unattended folder synchronization with Nextcloud without maintaining a desktop client.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

48/100 (Fair), based on 4 of 4 factors.
- Maintained: 60 (last commit 157 days ago)
- Popular: 10 (2 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 100 (128 MB minimum RAM, runs on ARM)

## Links

- Docker Hub: https://hub.docker.com/r/dkuhnke/nextcloud-sync
- GitHub: https://github.com/dkuhnke/nextcloud-sync
- Unraid: https://ca.unraid.net/apps/nextcloud-sync-0pm1s5g06bkxrk?q=nextcloud-sync

## Common questions

### Which Nextcloud credential should I use for NEXTCLOUD_PASS?

Use a Nextcloud app password or token instead of your main account password. The NEXTCLOUD_PASS variable is documented as the Nextcloud app password.

### Which local folder path should I mount into the container?

Mount your local data directory to /media/nextclouddata inside the container. This is the path the container expects for the synchronized data.

### How do I change how often the sync runs?

Set NEXTCLOUD_SLEEP to the number of seconds to wait between syncs. The default value is 300 seconds.

### How do failed syncs get retried?

The container uses exponential backoff for connection failures. You can set NEXTCLOUD_SYNC_RETRIES to control the number of retry attempts, with a default of 4.

### How can I enable more detailed logging?

Set NEXTCLOUD_DEBUG=true to enable verbose debug logging. The container also produces timestamped logs for monitoring and debugging.

### Does the container check anything before syncing?

It performs pre-sync health checks that validate connectivity and permissions.

## Alternatives

- Dropbox: Dropbox is a containerized client that runs the official Dropbox sync agent on a self-hosted server, keeping a local folder backed up and s…
- Ente Photos: Open-source, end-to-end encrypted backup and sharing for photos and videos, with multi-platform sync, original quality, privacy controls, a…
- FileRun: FileRun is a self-hosted, web-based file sync and share service.
- Filen: Filen is a cutting-edge cloud storage provider that offers client-side, end-to-end, zero-knowledge encryption.
- Filestash: Filestash is a self-hosted, storage-agnostic file manager that gives homelab users one browser-based interface to browse, organize, and man…
- Google Drive: Cloud service for file storage and sync, integrated with Google Docs suite, facilitating collaboration and offering scalable storage soluti…
- Google Photos: Cloud storage offering 15 GB free space, automatic album and duplicate organization, AI editing, cross-platform sharing, and secure backups.
- Internxt Drive: Open-source cloud storage platform with zero-knowledge encryption, blockchain-based architecture, secure file transfer, free 10 GB plan, an…
- MEGA: Cloud-storage service with end-to-end encryption, selective synchronization, and shared folders without ads.
- Microsoft OneDrive: Access, edit, and share your files across devices with 5 GB free storage.
- Nextcloud: Nextcloud is a self-hosted, open-source file and content collaboration platform that stores, syncs, and shares your files so you can access…
- OxiCloud: OxiCloud is a lightweight, high-performance self-hosted cloud built in Rust for files, photos, calendars, and contacts.

---
Source: Our Local Host (https://ourlocalhost.com/app/2434/nextcloud-sync), the self-hosted and open-source app directory.
