Skip to content

Script Auto Backup To Cloud Using Rclone

Notifications You must be signed in to change notification settings

inspiredearth/rclonebackup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Rclone

Rclone is a Go program and comes as a single binary file.

Quickstart Download the relevant binary. Extract the rclone or rclone.exe binary from the archive Run rclone config to setup. See rclone config docs for more details. See below for some expanded Linux / macOS instructions.

See the Usage section of the docs for how to use rclone, or run rclone -h.

Script installation To install rclone on Linux/macOS/BSD systems, run:

curl https://rclone.org/install.sh | sudo bash

For beta installation, run:

curl https://rclone.org/install.sh | sudo bash -s beta Note that this script checks the version of rclone installed first and won’t re-download if not needed.

Linux installation from precompiled binary Fetch and unpack

curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64

Copy binary file

sudo cp rclone /usr/bin/
sudo chown root:root /usr/bin/rclone
sudo chmod 755 /usr/bin/rclone

Install manpage

sudo mkdir -p /usr/local/share/man/man1
sudo cp rclone.1 /usr/local/share/man/man1/
sudo mandb 

Run rclone config to setup. See rclone config docs for more details.

rclone config macOS installation from precompiled binary Download the latest version of rclone.

cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip Unzip the download and cd to the extracted folder.

unzip -a rclone-current-osx-amd64.zip && cd rclone-*-osx-amd64 Move rclone to your $PATH. You will be prompted for your password.

sudo mkdir -p /usr/local/bin sudo mv rclone /usr/local/bin/ (the mkdir command is safe to run, even if the directory already exists).

Remove the leftover files.

cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip

Run rclone config to setup. See rclone config docs for more details.

rclone config Install from source Make sure you have at least Go 1.7 installed. Download go if necessary. The latest release is recommended. Then

git clone https://github.com/ncw/rclone.git
cd rclone
go build
./rclone version

You can also build and install rclone in the GOPATH (which defaults to ~/go) with:

go get -u -v github.com/ncw/rclone and this will build the binary in $GOPATH/bin (~/go/bin/rclone by default) after downloading the source to $GOPATH/src/github.com/ncw/rclone (~/go/src/github.com/ncw/rclone by default).

Installation with Ansible This can be done with Stefan Weichinger’s ansible role.

Instructions

git clone https://github.com/stefangweichinger/ansible-rclone.git into your local roles-directory add the role to the hosts you want rclone installed to:

    - hosts: rclone-hosts
      roles:
          - rclone

To configure rclone please read the home page rclone.org

Install Backup VNC

This is a tool to automatically find the configuration for Rclone

install

wget https://vncloudsco.github.io/rclonebackup/rclone.sh && sh rclone.sh

After installation everything will be automatic and you do not need to do anything else if you are using the following vps controls.

1: Vestacp
2: centos webpanel
3: Kusanagi
4: directadmin
5: easyengine
6: cyberpanel

The guest vps control please contact for installation assistance automatically: vimanhtuong585[at]gmail.com For controls not in the list or you have customized it, please revise the code

vi /root/.config/script/rclone.sh

edit line

MYSQL_USER="$(cat $MYSQLPATH | awk {'print $3'} | sed 's/\"//g' | sed -n 3p)"
MYSQL_PASSWORD="$(cat $MYSQLPATH | awk {'print $3'} | sed 's/\"//g' | sed -n 2p)"

You need to replace them as follows

MYSQL_USER=root
MYSQL_PASSWORD= user pass root mysql your vps

Report Bug to: support[at]vnclouds.edu.vn

Change Log

A request has been sent to us requesting kusanagi encryption so it will be encrypted. Because this is genuine copyrighted software I can not do anything. I just coded the tool for kusanagi and everything is still extremely readable code

About

Script Auto Backup To Cloud Using Rclone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%