From f5e60b6e37155cb712f84cf5d8c161d16c8026c5 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 27 Jun 2013 20:00:01 +0100 Subject: [PATCH] Rename to rclone --- .gitignore | 2 +- README.md | 20 +++++++++++++------- fs_drive.go | 2 +- fs_local.go | 2 +- notes.txt | 15 +-------------- swiftsync.go => rclone.go | 4 ++-- swiftsync_test.go => rclone_test.go | 2 +- 7 files changed, 20 insertions(+), 27 deletions(-) rename swiftsync.go => rclone.go (99%) rename swiftsync_test.go => rclone_test.go (80%) diff --git a/.gitignore b/.gitignore index 3d63fd7a2..b89cd5cfe 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ *.pyc test-env* junk/ -swiftsync +rclone diff --git a/README.md b/README.md index 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 filesystem FIXME @@ -9,15 +15,15 @@ FIXME Install ------- -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/rclone and this will build the binary in `$GOPATH/bin`. You can then modify the source and submit patches. @@ -38,7 +44,7 @@ Contact and support The project website is at: -- https://github.com/ncw/swiftsync +- https://github.com/ncw/rclone There you can file bug reports, ask for help or contribute patches. diff --git a/fs_drive.go b/fs_drive.go index 965db9981..d4ee7fb39 100644 --- a/fs_drive.go +++ b/fs_drive.go @@ -810,7 +810,7 @@ func (fs *FsObjectDrive) Storable() bool { // Open an object for read func (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, err diff --git a/fs_local.go b/fs_local.go index 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.txt index 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 ok Todo * Make a test suite which can run on all the given types of fs diff --git a/swiftsync.go b/rclone.go similarity index 99% rename from swiftsync.go rename to rclone.go index 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 package main @@ -480,7 +480,7 @@ var Commands = []Command{ // syntaxError prints the syntax func 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 stores Syntax: [options] subcommand diff --git a/swiftsync_test.go b/rclone_test.go similarity index 80% rename from swiftsync_test.go rename to rclone_test.go index 347cf605b..1a1894ee9 100644 --- a/swiftsync_test.go +++ b/rclone_test.go @@ -1,4 +1,4 @@ -// Tests for swiftsync +// Tests for rclone package main import (