Docker image to periodically run a scheduled backup using the RClone API
  • Go 95.4%
  • Go Template 3.1%
  • Dockerfile 1.5%
Find a file
George Grainger ab01fc233c
All checks were successful
Docker Image CI / build (push) Successful in 29s
Correct condition
2026-05-30 00:43:36 +01:00
.forgejo/workflows Correct condition 2026-05-30 00:43:36 +01:00
templates Inform user that backup will start immedietly when using backup.now flag 2025-01-28 21:59:27 +00:00
.dockerignore Add more files to .dockerignore 2023-05-25 20:08:01 +01:00
.gitignore Add test compose file 2024-07-25 23:03:01 +01:00
compose.yml Add test compose file 2024-07-25 23:03:01 +01:00
Dockerfile Fix case warnings 2024-10-06 10:30:56 +01:00
go.mod Add healthcheck 2024-07-28 11:17:00 +01:00
go.sum Add healthcheck 2024-07-28 11:17:00 +01:00
gotify.go Add app ready notification 2024-07-28 09:49:59 +01:00
main.go Add flag to start backup job on startup 2024-10-06 10:41:44 +01:00
notifier.go Inform user that backup will start immedietly when using backup.now flag 2025-01-28 21:59:27 +00:00
rclone.go Add healthcheck 2024-07-28 11:17:00 +01:00
README.md Remove unnecesary apply filter function 2023-06-04 15:43:43 +01:00
scheduler.go Set backup now flag on notifier 2025-01-28 22:00:41 +00:00
storage.go Add basic backup finished notification 2024-07-27 00:54:00 +01:00
util.go Re-write scheduler in go (#1) 2024-07-23 22:02:47 +01:00

Rclone-Scheduler

Build Status

Docker image to schedule a regular rclone backup using the rclone API

Configuration

Configuration is done through environment variables

Please note that rclone can be configured entirely through environment variables, so this image DOES NOT configure any filters or other parameters when calling the Rclone API.

Rclone connection variables

Variable Description Default
RCLONE_HOST Host in which the rclone daemon is running localhost
RCLONE_PORT Port in which the rclone daemon is listening 5572
RCLONE_PROTOCOL The protocol to use (http, or https) https

Backup config variables

Configuration for backup operation.
Bear in mind all paths are used by the Rclone daemon and not this script

Variable Description Default
BACKUP_SCHEDULE The cron schedule to run the backup on 0 0 * * 0
BACKUP_SOURCE Source to get the data from /data
BACKUP_REMOTE The remote to use as a destination when backing up remote
BACKUP_DEST The destination of the backup on the remote /backup

Restoring a backup

TODO
Currently this setup does not support the restoration of files from a remote.