"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
Rename to rclone
Nick Craig-Woodf5e60b6e3715
diff --git a/.gitignore b/.gitignoreindex 3d63fd7a2..b89cd5cfe 100644--- a/.gitignore+++ b/.gitignore@@ -2,4 +2,4 @@*.pyctest-env*junk/-swiftsync+rclonediff --git a/README.md b/README.mdindex 0e416a57e..e9ad6c3a9 100644--- a/README.md+++ b/README.md@@ -1,7 +1,13 @@-Swiftsync-==========+Rclone+======-Sync files and directories to and from swift+Sync files and directories to and from++ * Openstack Swift+ * Rackspace cloud files+ * Amazon S3+ * Google Drive+ * The local filesystemFIXME@@ -9,15 +15,15 @@ FIXMEInstall--------Swiftsync is a Go program and comes as a single binary file.+Rclone is a Go program and comes as a single binary file.Download the relevant binary from-- http://www.craig-wood.com/nick/pub/swiftsync/+- http://www.craig-wood.com/nick/pub/rclone/Or alternatively if you have Go installed use- go get github.com/ncw/swiftsync+ go get github.com/ncw/rcloneand this will build the binary in `$GOPATH/bin`. You can then modifythe source and submit patches.@@ -38,7 +44,7 @@ Contact and supportThe project website is at:-- https://github.com/ncw/swiftsync+- https://github.com/ncw/rcloneThere you can file bug reports, ask for help or contribute patches.diff --git a/fs_drive.go b/fs_drive.goindex 965db9981..d4ee7fb39 100644--- a/fs_drive.go+++ b/fs_drive.go@@ -810,7 +810,7 @@ func (fs *FsObjectDrive) Storable() bool {// Open an object for readfunc (fs *FsObjectDrive) Open() (in io.ReadCloser, err error) {req, _ := http.NewRequest("GET", fs.url, nil)- req.Header.Set("User-Agent", "swiftsync/1.0")+ req.Header.Set("User-Agent", "rclone/1.0")res, err := fs.drive.client.Do(req)if err != nil {return nil, errdiff --git a/fs_local.go b/fs_local.goindex 600a20444..f7050974b 100644--- a/fs_local.go+++ b/fs_local.go@@ -205,7 +205,7 @@ func (f *FsLocal) readPrecision() (precision time.Duration) {precision = time.Second// Create temporary file and test it- fd, err := ioutil.TempFile("", "swiftsync")+ fd, err := ioutil.TempFile("", "rclone")if err != nil {// If failed return 1s// fmt.Println("Failed to create temp file", err)diff --git a/notes.txt b/notes.txtindex 5c9d7443e..3c7dbc8c1 100644--- a/notes.txt+++ b/notes.txt@@ -1,18 +1,5 @@Names- * cakesync- * zzsync- * pqrsync- * gogosync- * pogosync- * oursync- * godupe- * gobsync- * gobcopy- * togosync- * tangosync- * mangosync- * cargosync- * cargocopy - domain available+ * rclone - domain ok, apt okTodo* Make a test suite which can run on all the given types of fsdiff --git a/swiftsync.go b/rclone.gosimilarity index 99%rename from swiftsync.gorename to rclone.goindex 3c2741e36..aaab94630 100644--- a/swiftsync.go+++ b/rclone.go@@ -1,4 +1,4 @@-// Sync files and directories to and from swift+// Sync files and directories to and from local and remote object stores//// Nick Craig-Wood <[email protected]>package main@@ -480,7 +480,7 @@ var Commands = []Command{// syntaxError prints the syntaxfunc syntaxError() {- fmt.Fprintf(os.Stderr, `Sync files and directories to and from swift+ fmt.Fprintf(os.Stderr, `Sync files and directories to and from local and remote object storesSyntax: [options] subcommand <parameters> <parameters...>diff --git a/swiftsync_test.go b/rclone_test.gosimilarity index 80%rename from swiftsync_test.gorename to rclone_test.goindex 347cf605b..1a1894ee9 100644--- a/swiftsync_test.go+++ b/rclone_test.go@@ -1,4 +1,4 @@-// Tests for swiftsync+// Tests for rclonepackage mainimport (