2015-06-06 17:05:21 +08:00
|
|
|
---
|
|
|
|
title: "Install"
|
|
|
|
description: "Rclone Installation"
|
2016-03-28 18:36:52 +08:00
|
|
|
date: "2016-03-28"
|
2016-04-19 01:55:07 +08:00
|
|
|
---
|
2015-06-06 17:05:21 +08:00
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
|
|
|
Rclone is a Go program and comes as a single binary file.
|
|
|
|
|
|
|
|
[Download](/downloads/) the relevant binary.
|
|
|
|
|
2016-03-28 18:36:52 +08:00
|
|
|
Or alternatively if you have Go 1.5+ installed use
|
2015-06-06 17:05:21 +08:00
|
|
|
|
|
|
|
go get github.com/ncw/rclone
|
|
|
|
|
2015-06-14 22:04:39 +08:00
|
|
|
and this will build the binary in `$GOPATH/bin`. If you have built
|
|
|
|
rclone before then you will want to update its dependencies first with
|
2016-03-28 18:36:52 +08:00
|
|
|
this
|
2015-06-06 17:05:21 +08:00
|
|
|
|
2016-03-28 18:36:52 +08:00
|
|
|
go get -u -v github.com/ncw/rclone/...
|
2015-06-14 22:04:39 +08:00
|
|
|
|
|
|
|
See the [Usage section](/docs/) of the docs for how to use rclone, or
|
2015-06-06 17:05:21 +08:00
|
|
|
run `rclone -h`.
|
2015-06-28 17:38:27 +08:00
|
|
|
|
|
|
|
linux binary downloaded files install example
|
|
|
|
-------
|
|
|
|
|
|
|
|
unzip rclone-v1.17-linux-amd64.zip
|
|
|
|
cd rclone-v1.17-linux-amd64
|
|
|
|
#copy binary file
|
|
|
|
sudo cp rclone /usr/sbin/
|
|
|
|
sudo chown root:root /usr/sbin/rclone
|
|
|
|
sudo chmod 755 /usr/sbin/rclone
|
|
|
|
#install manpage
|
|
|
|
sudo mkdir -p /usr/local/share/man/man1
|
|
|
|
sudo cp rclone.1 /usr/local/share/man/man1/
|
|
|
|
sudo mandb
|
2016-07-09 20:47:55 +08:00
|
|
|
|
|
|
|
Installation with Ansible
|
|
|
|
-------
|
|
|
|
|
|
|
|
This can be done with [Stefan Weichinger's ansible
|
|
|
|
role](https://github.com/stefangweichinger/ansible-rclone).
|
|
|
|
|
|
|
|
Instructions
|
|
|
|
|
|
|
|
1. `git clone https://github.com/stefangweichinger/ansible-rclone.git` into your local roles-directory
|
|
|
|
2. add the role to the hosts you want rclone installed to:
|
|
|
|
|
|
|
|
```
|
|
|
|
- hosts: rclone-hosts
|
|
|
|
roles:
|
|
|
|
- rclone
|
|
|
|
```
|