Repository navigation
Backups
FileCanopy has two backup layers. Use both.
| Layer | What it covers | Where it lives |
|---|---|---|
| In-app backup jobs (optional) | Encrypted or unencrypted archives of library folders, with schedules and history | A folder on the backup volume, SFTP, or S3-compatible storage |
| Whole-install disaster-recovery script | Database, app-data/ and library/ together, for rebuilding the install |
A folder you choose on another disk |
Neither layer is a substitute for the other. In-app backups do not include the database or app secrets.
Turn them on by adding the backup override and setting a path:
# .env
FILECANOPY_BACKUP_PATH=/mnt/other-disk/filecanopy-backupsdocker compose -f compose.yaml -f docker-compose.backup.yml up -d --waitThe folder must be on a separate disk or share. It must not be inside, contain, or sit inside the library or app-data folder. The API user (FILECANOPY_UID/GID) must own it. Without the override there is no backup volume and the feature stays off.
Then open the Backups page in the web app.
- An installation can hold several jobs. Each has its own schedule, destination, and type: "Full every time" or an incremental chain.
- Encrypted or unencrypted. Prefer encrypted for anything remote. Unencrypted jobs never back up personal folders, and leave Confidential files out of the shared folder unless you explicitly allow them.
-
Destinations: a folder on the backup volume, SFTP (pin the server's host-key fingerprint; use Test connection to see it), or S3-compatible storage. Destinations on a private network are refused unless
FILECANOPY_BACKUP_ALLOW_PRIVATE_DESTINATIONS=true. - Remote credentials are stored encrypted under
FILECANOPY_SECRETS_KEY, which is required for remote jobs. - Saving a remote or unencrypted job asks for your PIN or password again.
- A job's destination cannot change once it holds backups. Create a new job instead.
- Restores of single folders are available from the job's history.
Each personal folder has its own backup key. After upgrading to a release with per-folder keys, each person must create and confirm a key before their personal folder is backed up again. The shared folder uses the administrator key.
This is a full copy you can rebuild a machine from. Run it as the owner of library/ and app-data/ (or root), from the folder that holds compose.yaml:
sh deploy/scripts/backup.sh /mnt/other-disk/filecanopy-backupsIt writes one new folder with the database dump, app-data/, library/, and checksums. By default it stops the web and API for a consistent copy, then restarts them, even if the backup fails.
-
--skip-libraryif the library has its own backup (snapshots, rsync, a NAS). Restore the library that way. -
--no-stopcopies a running system. The parts can disagree slightly, so use it only when downtime is not possible.
The scripts need POSIX sh, GNU tar and sha256sum. On Windows, run them inside WSL.
To restore, use a new, empty installation with the original bundle and your private .env:
sh deploy/scripts/restore.sh /mnt/other-disk/filecanopy-backups/filecanopy-20261102T120000ZThe script checks checksums and refuses non-empty folders or an existing database. Use a new project name for a recovery drill, and never reuse a live database volume. After a restore, sign in, open a few files and check the activity log.
A backup made by a newer release cannot be restored into an older one. There is no automatic downgrade.
Backups contain everyone's files, password hashes, and app secrets. Keep them on another disk. Encrypt that disk or the copy if it leaves your hands. Schedule the scripts with cron or a systemd timer, and prune old folders yourself.