1
mirror of https://github.com/rclone/rclone synced 2024-11-17 17:30:37 +01:00
Go to file
Ivan Andreev 8c10dee510 mountlib: use procfs to validate mount on linux - #5593
Current way of checking whether mountpoint has been already mounted (directory
list) can result in race if rclone runs under Automount (classic or systemd).

This patch adopts Linux ProcFS for the check. Note that mountpoint is considered
empty if it's tagged as "mounted" by autofs. Also ProcFS is used to check whether
rclone mount was successful (ie. tagged by a string containing "rclone").

On macOS/BSD where ProcFS is unavailable the old method is still used.

This patch also moves a few utility functions unchanged to utils.go:
CheckOverlap, CheckAllowings, SetVolumeName.
2021-10-02 23:45:16 +03:00
.github build: update Go to 1.16 and NDK to 22b for android/any 2021-09-03 13:32:48 +03:00
backend lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
bin docs: update ignored email as per #5586 2021-09-12 18:46:37 +01:00
cmd mountlib: use procfs to validate mount on linux - #5593 2021-10-02 23:45:16 +03:00
cmdtest config: support hyphen in remote name from environment variable 2021-10-01 15:18:04 +02:00
contrib/docker Contrib: Add sample WebDAV server Docker Compose manifest. 2019-09-15 16:06:54 +01:00
docs log: optionally print pid in logs - #5593 2021-10-02 23:45:16 +03:00
fs log: optionally print pid in logs - #5593 2021-10-02 23:45:16 +03:00
fstest lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
graphics build: Add file properties and icon to Windows executable (fixes #4304) 2020-06-11 09:26:14 +01:00
lib lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
librclone librclone: add missing sync/* rc methods 2021-07-20 16:59:02 +01:00
vfs lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
.gitattributes build: add azure pipelines build 2019-08-06 10:31:32 +01:00
.gitignore docs for serve docker and docker plugin (#5415) 2021-07-10 23:56:09 +03:00
.golangci.yml build: move linter build tags into Makefile to fix golangci-lint 2019-04-12 15:48:36 +01:00
CONTRIBUTING.md cmdtest: end-to-end test for commands, flags and environment variables 2021-07-05 16:38:20 +01:00
COPYING Initial commit - some small parts working 2012-11-18 17:32:31 +00:00
Dockerfile build: add an rclone user to the Docker image but don't use it by default 2021-02-11 17:45:44 +00:00
go.mod mountlib: use procfs to validate mount on linux - #5593 2021-10-02 23:45:16 +03:00
go.sum mountlib: use procfs to validate mount on linux - #5593 2021-10-02 23:45:16 +03:00
MAINTAINERS.md compress: finish docs 2020-12-02 16:30:02 +01:00
Makefile build docker plugin (#5415) 2021-07-10 23:56:09 +03:00
MANUAL.html Version v1.56.0 2021-07-20 19:45:41 +01:00
MANUAL.md Version v1.56.0 2021-07-20 19:45:41 +01:00
MANUAL.txt Version v1.56.0 2021-07-20 19:45:41 +01:00
notes.txt docs: spelling: etc. 2020-10-28 18:16:23 +00:00
rclone.1 Version v1.56.0 2021-07-20 19:45:41 +01:00
rclone.go lib: add plugin support 2019-09-29 11:05:10 +01:00
README.md deprecate cache backend (#5382) 2021-06-10 19:52:55 +03:00
RELEASE.md build: update notes on how to build the release manually with docker 2021-03-24 14:22:27 +00:00
VERSION Start v1.57.0-DEV development 2021-08-01 13:43:36 +01:00

rclone logo

Website | Documentation | Download | Contributing | Changelog | Installation | Forum

Build Status Go Report Card GoDoc Docker Pulls

Rclone

Rclone ("rsync for cloud storage") is a command line program to sync files and directories to and from different cloud storage providers.

Storage providers

Please see the full list of all storage providers and their features

Features

  • MD5/SHA-1 hashes checked at all times for file integrity
  • Timestamps preserved on files
  • Partial syncs supported on a whole file basis
  • Copy mode to just copy new/changed files
  • Sync (one way) mode to make a directory identical
  • Check mode to check for file hash equality
  • Can sync to and from network, e.g. two different cloud accounts
  • Optional large file chunking (Chunker)
  • Optional transparent compression (Compress)
  • Optional encryption (Crypt)
  • Optional FUSE mount (rclone mount)
  • Multi-threaded downloads to local disk
  • Can serve local or remote files over HTTP/WebDav/FTP/SFTP/dlna

Installation & documentation

Please see the rclone website for:

Downloads

License

This is free software under the terms of MIT the license (check the COPYING file included in this package).