"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmount: name the command mount under windows and cmount under linux
Nick Craig-Wood855071cc19a2
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.goindex c1d36a884..8bd9a1e8c 100644--- a/cmd/cmount/mount.go+++ b/cmd/cmount/mount.go@@ -66,11 +66,12 @@ func init() {}var commandDefintion = &cobra.Command{- Use: "cmount remote:path /path/to/mountpoint",+ Use: commandName + " remote:path /path/to/mountpoint",Short: `Mount the remote as a mountpoint. **EXPERIMENTAL**`,Long: `-rclone mount allows Linux, FreeBSD and macOS to mount any of Rclone's-cloud storage systems as a file system with FUSE.+rclone ` + commandName + ` allows Linux, FreeBSD, macOS and Windows to+mount any of Rclone's cloud storage systems as a file system with+FUSE.This is **EXPERIMENTAL** - use with care.@@ -78,11 +79,11 @@ First set up your remote using ` + "`rclone config`" + `. Check it works with `Start the mount like this- rclone mount remote:path/to/files /path/to/local/mount+ rclone ` + commandName + ` remote:path/to/files /path/to/local/mountOr on Windows like this where X: is an unused drive letter- rclone mount remote:path/to/files X:+ rclone ` + commandName + ` remote:path/to/files X:When the program ends, either via Ctrl+C or receiving a SIGINT or SIGTERM signal,the mount is automatically stopped.@@ -109,16 +110,16 @@ None of these support the concept of directories, so emptydirectories will have a tendency to disappear once they fall out ofthe directory cache.-Only supported on Linux, FreeBSD and OS X at the moment.+Only supported on Linux, FreeBSD, OS X and Windows at the moment.-### rclone mount vs rclone sync/copy ##+### rclone ` + commandName + ` vs rclone sync/copy ##File systems expect things to be 100% reliable, whereas cloud storagesystems are a long way from 100% reliable. The rclone sync/copy-commands cope with this with lots of retries. However rclone mount+commands cope with this with lots of retries. However rclone ` + commandName + `can't use retries in the same way without making local copies of theuploads. This might happen in the future, but for the moment rclone-mount won't do that, so will be less reliable than the rclone command.+` + commandName + ` won't do that, so will be less reliable than the rclone command.### Filters ###diff --git a/cmd/cmount/mount_unix.go b/cmd/cmount/mount_unix.goindex 5d32e203a..c81ca064e 100644--- a/cmd/cmount/mount_unix.go+++ b/cmd/cmount/mount_unix.go@@ -5,6 +5,8 @@ package cmountimport "golang.org/x/sys/unix"+const commandName = "cmount"+func init() {umask = unix.Umask(0) // read the umaskunix.Umask(umask) // set it back to what it wasdiff --git a/cmd/cmount/mount_windows.go b/cmd/cmount/mount_windows.gonew file mode 100644index 000000000..371c6e6d9--- /dev/null+++ b/cmd/cmount/mount_windows.go@@ -0,0 +1,6 @@+// +build cgo+// +build windows++package cmount++const commandName = "mount"