A solution for regularly cloning Docker volumes to a remote NFS location.
Much of this was possible thanks to this guide written by Jason Kulatunga, aka Sparktree.
TARGET_SUBDIR_NAME- The name of the subdirectory within the target directory to clone to.RUN_ON_STARTUP(optional) - Whether to run the rclone job when the container is started. If set toTRUE, then it runs on startup.CRON_ARGUMENTS(optional) - In cron format, being minute, hour, day of month, month, day of week. If not set, then no cron job will be scheduled.RCLONE_OPTIONS(optional) - A list of options to set when runningrclone sync. If not set, then it defaults to--links --progressTZ(optional) - The timezone to set for the container. Example:America/Los_Angeles
/volumes- It's recommended that you map individual volumes to subdirectories of this mount, rather than Docker's volumes folder to this mount (to avoid an infinite loop). It is recommended to make these read-only./volumes-clone- This is where/volumesgets cloned to, like a local directory or NFS mount. (Seedocker-compose.ymlfor example)