[ RClone ] [ CLI ] [ 1.58.0] RSync for Cloud Storage

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
QNAP_Stephane
Experience counts
Posts: 4366
Joined: Wed Mar 27, 2013 1:00 am

[ RClone ] [ CLI ] [ 1.58.0] RSync for Cloud Storage

Post by QNAP_Stephane » Wed Jun 22, 2016 4:08 pm

Source : http://rclone.org

Download : x86,x64 x19,x31,x41, arm64



RClone_1.58.0_arm-x19.qpkg https://1fichier.com/?lh5affq2tlp7nkdn8m9v
RClone_1.58.0_arm-x31.qpkg https://1fichier.com/?1mtneud3q6x0u8jalznm
RClone_1.58.0_arm-x41.qpkg https://1fichier.com/?vfkxx7stkulxae72i9rp
RClone_1.58.0_arm_64.qpkg https://1fichier.com/?vqqvto6zwn8luuowk9kt
RClone_1.58.0_x86.qpkg https://1fichier.com/?btlnxiny7p00std4brg2
RClone_1.58.0_x86_64.qpkg https://1fichier.com/?g8ercikffknnjqeujf9m



https://qnapclub.eu/fr/qpkg/330


Note :

unzip
install within Appcenter
log in SSH to test, rclone command line is added to NAS $PATH


WebUI implemented since 1.50 ... port 5572 , credential : qnap / qnap


About :

Rclone is a command line program to sync files and directories to and from

Google Drive
Amazon S3
Openstack Swift / Rackspace cloud files / Memset Memstore
Dropbox
Google Cloud Storage
Amazon Cloud Drive
Microsoft One Drive
Hubic
Backblaze B2
Yandex Disk
The local filesystem

Features

MD5/SHA1 hashes checked at all times for file integrity
Timestamps preserved on files
Partial syncs supported on a whole file basis
Copy mode to just copy new/changed files
Sync (one way) mode to make a directory identical
Check mode to check for file hash equality
Can sync to and from network, eg two different cloud accounts
Last edited by QNAP_Stephane on Thu Mar 24, 2022 8:59 pm, edited 26 times in total.

User avatar
QNAP_Stephane
Experience counts
Posts: 4366
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by QNAP_Stephane » Fri Sep 02, 2016 12:12 am

updated

itherseed
New here
Posts: 2
Joined: Sun Nov 08, 2015 4:04 am

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by itherseed » Sun Sep 04, 2016 12:17 pm

Many thanks. I'll try this.

Cadish
Starting out
Posts: 20
Joined: Tue Dec 24, 2013 8:27 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by Cadish » Fri Sep 16, 2016 1:56 am

This is working a lot better than the stock Hybrid Backup application from QNAP for syncing everything to Amazon Cloud Drive.

Thanks a lot!
Cadish

rudycloud
Starting out
Posts: 24
Joined: Fri Jan 08, 2016 12:19 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by rudycloud » Sat Sep 24, 2016 7:42 pm

I have been looking for this for a long time!

proxemics
Starting out
Posts: 15
Joined: Mon Aug 15, 2016 5:40 am

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by proxemics » Sun Oct 09, 2016 7:38 am

Are there any tutorials on setting this up?

Cadish
Starting out
Posts: 20
Joined: Tue Dec 24, 2013 8:27 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by Cadish » Tue Oct 11, 2016 3:33 am

QNAP_Stephane, after a reboot I need to stop and start the app again, as the "command cannot be found"... Any idea how to fix this?

Thanks a lot in advance!
Cadish

User avatar
QNAP_Stephane
Experience counts
Posts: 4366
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by QNAP_Stephane » Tue Oct 11, 2016 7:47 pm

basically on start command are added in NAS PATH via a symlink pointing to qpkg path

it is possible the application has some failure to start if many applications are starting on same RC level

may be try to edit /etc/qpkg.conf and find the RC_Number = in RClone section and put an higher number

somy1982
Easy as a breeze
Posts: 372
Joined: Fri Apr 08, 2016 6:42 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by somy1982 » Wed Oct 12, 2016 7:53 pm

Appreciate if somebody can write a tutorial on how to use the tool to do continuous backup :)

Cadish
Starting out
Posts: 20
Joined: Tue Dec 24, 2013 8:27 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by Cadish » Mon Oct 17, 2016 3:07 am

Very quick and rough tutorial, based on the headless configuration, as described here: http://rclone.org/remote_setup/

Desktop
  • Install rclone on your computer
  • Configure rclone and copy/paste the token

QNAP
  • Install rclone on the QNAP
  • Log in onto your QNAP via SSH on a terminal
  • Configure rclone via headless setup, where you paste the token as generated on the desktop
  • Move your config file somewhere else, where it won't be deleted after reboot
  • Generate an exclusion list if necessary: http://rclone.org/filtering/
  • Try the command as you wish: http://rclone.org/docs/
  • Put this into a separate file which is runned by the crontab. Best tutorial I found to make a crontab change sticky is this: https://www.techandme.se/qnap-and-cron/

Note: I got an error x509 on Amazon Cloud Drive. To resolve this issue, you need to update the ssl roots, as described here (maybe with --insecure): http://rclone.org/faq/#rclone-gives-x50 ... ided-error. As soon as the QNAP reboots, you'll need to execute this command again, so added this command to my executable file.

Here's my executable file:

Code: Select all

#!/bin/sh
####################################
#
# Backup to Amazon Cloud Drive
#
####################################

#Load CA Certificates: http://rclone.org/faq/#rclone-gives-x509-failed-to-load-system-roots-and-no-roots-provided-error
curl --insecure -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

#Start the rclone command
rclone sync /share/Path/To/Files ACD:/Path/To/Files --transfers=1 --checkers=1 -q --delete-during --exclude-from=/share/Other/Path/rclone-exclude.txt --config=/share/Other/Path/.rclone.conf


Hope it helps someone...

Regards
Cadish

somy1982
Easy as a breeze
Posts: 372
Joined: Fri Apr 08, 2016 6:42 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by somy1982 » Tue Oct 18, 2016 5:58 pm

Cadish wrote:Very quick and rough tutorial, based on the headless configuration, as described here: http://rclone.org/remote_setup/

Desktop
  • Install rclone on your computer
  • Configure rclone and copy/paste the token

QNAP
  • Install rclone on the QNAP
  • Log in onto your QNAP via SSH on a terminal
  • Configure rclone via headless setup, where you paste the token as generated on the desktop
  • Move your config file somewhere else, where it won't be deleted after reboot
  • Generate an exclusion list if necessary: http://rclone.org/filtering/
  • Try the command as you wish: http://rclone.org/docs/
  • Put this into a separate file which is runned by the crontab. Best tutorial I found to make a crontab change sticky is this: https://www.techandme.se/qnap-and-cron/

Note: I got an error x509 on Amazon Cloud Drive. To resolve this issue, you need to update the ssl roots, as described here (maybe with --insecure): http://rclone.org/faq/#rclone-gives-x50 ... ided-error. As soon as the QNAP reboots, you'll need to execute this command again, so added this command to my executable file.

Here's my executable file:

Code: Select all

#!/bin/sh
####################################
#
# Backup to Amazon Cloud Drive
#
####################################

#Load CA Certificates: http://rclone.org/faq/#rclone-gives-x509-failed-to-load-system-roots-and-no-roots-provided-error
curl --insecure -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

#Start the rclone command
rclone sync /share/Path/To/Files ACD:/Path/To/Files --transfers=1 --checkers=1 -q --delete-during --exclude-from=/share/Other/Path/rclone-exclude.txt --config=/share/Other/Path/.rclone.conf


Hope it helps someone...

Regards
Cadish


Thanks! Very nice tutorial, will try it tonight!
One question: without a UI how do you know the progress and status of the cron job?

Cadish
Starting out
Posts: 20
Joined: Tue Dec 24, 2013 8:27 pm

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by Cadish » Wed Oct 19, 2016 5:21 pm

somy1982 wrote:One question: without a UI how do you know the progress and status of the cron job?

You don't know the progress/status. I log into ACD and see there that files are still being uploaded...
This lack of transparency is the only disadvantage of this method.

User avatar
QNAP_Stephane
Experience counts
Posts: 4366
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RClone ] [ CLI ] [ 1.34 ] RSync for Cloud Storage

Post by QNAP_Stephane » Mon Nov 14, 2016 12:51 am

updated to 1.34

benfishbus
New here
Posts: 9
Joined: Mon Sep 05, 2016 6:12 am

Re: [ RClone ] [ CLI ] [ 1.33 ] RSync for Cloud Storage

Post by benfishbus » Tue Nov 29, 2016 7:03 am

Cadish wrote:
somy1982 wrote:One question: without a UI how do you know the progress and status of the cron job?

You don't know the progress/status. I log into ACD and see there that files are still being uploaded...
This lack of transparency is the only disadvantage of this method.


I use the switch --log-file=/path/to/logfile.txt and then 'tail' the log file anytime I want to check status. Not ideal, as it doesn't provide a cumulative completion percentage. But you can at least check what it's doing.

User avatar
QNAP_Stephane
Experience counts
Posts: 4366
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RClone ] [ CLI ] [ 1.35 ] RSync for Cloud Storage

Post by QNAP_Stephane » Mon Jan 09, 2017 2:24 am

updated to 1.35

Post Reply

Return to “Community Apps”