{"id":15862431,"url":"https://github.com/ifeulner/rclone-tests","last_synced_at":"2026-01-11T01:50:13.832Z","repository":{"id":215592950,"uuid":"236445700","full_name":"ifeulner/rclone-tests","owner":"ifeulner","description":"Rclone setup and tests","archived":false,"fork":false,"pushed_at":"2020-01-27T08:27:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T13:33:10.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ifeulner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-27T08:19:35.000Z","updated_at":"2020-01-27T08:27:10.000Z","dependencies_parsed_at":"2024-01-05T10:46:41.057Z","dependency_job_id":"53e855c7-1066-44d1-9628-ecf28a1b050a","html_url":"https://github.com/ifeulner/rclone-tests","commit_stats":null,"previous_names":["ifeulner/rclone-tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Frclone-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Frclone-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Frclone-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Frclone-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifeulner","download_url":"https://codeload.github.com/ifeulner/rclone-tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709918,"owners_count":20821298,"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-05T22:40:43.275Z","updated_at":"2026-01-11T01:50:13.778Z","avatar_url":"https://github.com/ifeulner.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rclone and Nextcloud\n\nQuick evalation to check if `rclone` is a suitable tool to sync files between the local filesystem and Nextcloud. Covers setup and basic use cases.\n\n# Introduction\n\nRclone *(\"rsync for cloud storage\")* is an open source command line program to sync files and directories to and from different cloud storage providers. Rclone is written in Go and available as a binary and also as a docker image.\n\n[Website](https://rclone.org) |\n[Documentation](https://rclone.org/docs/) |\n[Installation](https://rclone.org/install/) |\n[Forum](https://forum.rclone.org/) |\n[Github](https://github.com/rclone/rclone)\n\nRclone supports Nextcloud via the [WebDAV](https://rclone.org/webdav/#nextcloud) backend provider.\nThe following install and sync tests     are done based on the newest version of rclone - 1.50.2.\n\n# Configuration\n\nConfiguration is either be done via using a configuration file or also via environment variables.\n\n## Via a configuration file\n\nMultiple backends can be specified. \n\nFor *Nextcloud* the `type` needs to be `webdav`, `vendor` set to `nextcloud` and the remote `url` needs to have appended the following path: `/remote.php/webdav/`.\n\n\n```bash\n[MEDTST]\ntype = webdav\nurl = https://partner.medneo.info/remote.php/webdav/\nvendor = nextcloud\nuser = ingo.feulner\n# provide password by running 'rclone obscure \u003cpassword\u003e'\npass = \u003credacted\u003e\n```\n\n## Via environment variables\n\nRclone can be configured entirely using environment variables. These can be used to set defaults for options or config file entries.\nTo find the name of the environment variable you need to set to be used for a config entry, take `RCLONE_CONFIG_` + `\u003cname of remote\u003e` + _ + name of config file option and make it all uppercase.\n\nThe above shown config file results in setting the following environment variables:\n\n```bash\nexport RCLONE_CONFIG_MEDTST_TYPE=webdav\nexport RCLONE_CONFIG_MEDTST_URL=https://partner.medneo.info/remote.php/webdav/\nexport RCLONE_CONFIG_MEDTST_VENDOR=nextcloud\nexport RCLONE_CONFIG_MEDTST_USER=ingo.feulner\nexport RCLONE_CONFIG_MEDTST_PASS=\u003credacted\u003e\n```\n\nCan then be used either in a shell via `source \u003cenv-file\u003e` or when using docker with `docker run --env-file \u003cenv-file\u003e` (without the `export` before each variable).\n\nTest configuration by running e.g.\n```bash\nrclone ls MEDTST:/ # lists a remote\n```\nor\n```bash\n# see provided Dockerfile, build with docker build .\ndocker run --env-file env_file.sh \u003crclone-imageid\u003e ls MEDTST:/ # lists a remote\n```\n\n\n# Syncing\n\nSyncing is done via the command [sync](https://rclone.org/commands/rclone_sync/).\n\n```\nrclone sync source:path dest:path [flags]\n```\n\nMake source and dest identical, modifying destination only.\n\n## Synopsis\n\nRclone syncs the source to the destination, changing the destination only (one-way sync). Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. \nDestination is updated to match source, including **deleting** files if necessary.\n\nImportant: Since this can cause data loss, test first with the `--dry-run` flag to see exactly what would be copied and deleted.\n\n## Concrete example\n\n### Sync from remote src to local destination\n\n```bash\n# when using a config file\nrclone --config rclone.conf -P --use-server-modtime sync \"MEDTST:/Documents\" \"temp/\"\n\n# with environment variables (see above) set\nrclone -P --use-server-modtime sync \"MEDTST:/Documents\" \"temp/\"\n\n# Output\nTransferred:   \t    2.487M / 2.487 MBytes, 100%, 1.172 MBytes/s, ETA 0s\nErrors:                 0\nChecks:                 0 / 0, -\nTransferred:            3 / 3, 100%\nElapsed time:        2.1s\n\n# second run (no changes obviously)\nrclone -P --use-server-modtime sync \"MEDTST:/Documents\" \"temp/\"\n\nTransferred:   \t         0 / 0 Bytes, -, 0 Bytes/s, ETA -\nErrors:                 0\nChecks:                 3 / 3, 100%\nTransferred:            0 / 0, -\nElapsed time:          0s\n\n```\n\n* `--config` allows to specifiy another file to be be used for configuration\n* `-P` displays the progress in the commandline\n* `--use-server-modtime` uses server modified time instead of object metadata\n\n### Sync from local src to remote destination\n```bash\n# with environment variables (see above) set\nrclone -P --use-server-modtime sync \"./temp/\" \"MEDTST:/Documents\" \n```\n\n\n## Findings\n\n* `rclone` doesn't sync directory date and times\n* symlinks will be ignored (or copied, if `--copy-links` / `-L` is specified)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifeulner%2Frclone-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifeulner%2Frclone-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifeulner%2Frclone-tests/lists"}