[Support] Rclone (beta)


Recommended Posts

PlugIn:  Here is the code if you want to make this a plugin instead.  I found this code in another post on UnRaid, I just made a couple of tweaks to make it work.  Just call it "Rclone.plg" and put it on your Flash Drive, then install the plugin from the directory that you copied the file from.

 

<?xml version='1.0' standalone='yes'?>

<!DOCTYPE PLUGIN [
<!ENTITY name      "rclone">
<!ENTITY author    "aschamberger">
<!ENTITY version   "2016.09.25">
<!ENTITY pluginURL "&name;.plg">
]>

<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;">

<CHANGES>
##&name;

###2016.09.25
- add .cron file template for daily backup (use 'update_cron' to reload changes and 'cat /etc/cron.d/root' to see current config)
- update rclone to v1.33

###2016.08.15
- add myrclone with config + transfers parameter 
- add log dir for --log option of myrclone

###2016.08.14
- initial version
</CHANGES>

<!--

This plugin installs Rclone on unRAID systems.
Thanks to stignz for his great guide: https://lime-technology.com/forum/index.php?topic=46663.0

-->

<FILE Run="/bin/bash" Method="install">
<INLINE>
# version could be 'current' also
rcloneversion=current
rclonefile=rclone-$rcloneversion-linux-amd64.zip

if [ -d /usr/local/emhttp/plugins/&name; ]; then
  rm -rf /usr/local/emhttp/plugins/&name;
fi;

mkdir -p /boot/config/plugins/&name;/install/
if [ -f /boot/config/plugins/&name;/install/ca-certificates.crt ]; then
  rm -f /boot/config/plugins/&name;/install/ca-certificates.crt
fi;
curl -o /boot/config/plugins/&name;/install/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

if [ -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip ]; then
  rm -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip
fi;
wget http://downloads.rclone.org/$rclonefile -O /boot/config/plugins/&name;/install/$rclonefile

if [ -d /boot/config/plugins/&name;/install/rclone-v*/ ]; then
  rm -rf /boot/config/plugins/&name;/install/rclone-v*/
fi;
unzip /boot/config/plugins/&name;/install/$rclonefile -d /boot/config/plugins/&name;/install/

cp /boot/config/plugins/&name;/install/rclone-v*/rclone /usr/sbin/
chown root:root /usr/sbin/rclone
chmod 755 /usr/sbin/rclone

mkdir -p /etc/ssl/certs/
cp /boot/config/plugins/&name;/install/ca-certificates.crt /etc/ssl/certs/

if [ ! -f /boot/config/plugins/&name;/.rclone.conf ]; then
  touch /boot/config/plugins/&name;/.rclone.conf;
fi;

mkdir -p /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been installed."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Run="/bin/bash" Method="remove">
<INLINE>
rm -rf /boot/config/plugins/&name;/install
rm -rf /usr/local/emhttp/plugins/&name;
rm -f /usr/sbin/rclone;
rm -f /usr/sbin/myrclone;
rm -f /etc/ssl/certs/ca-certificates.crt

rm -f /boot/config/plugins/&name;/~daily_backup.cron

# we keep config and logs
#rm -f /boot/config/plugins/&name;/.rclone.conf;
#rm -f /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been uninstalled."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/&name;.png" Type="base64">
<INLINE>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAASx0lEQVRYw2WZeXRUVbbGv33OrVtVmRMSyMCchBkhioAiiI0CNjZqCzhjq6A+Re0G51bbCcWxtVVEwBlEhQbFbuluVEBABhECyNCEAIEwyBCSSqWme87Z749zK/DWq3VXVq2sm3vP2Wfvb/++HXp3b8xjTmpOGqQMKwMGCBAEAIbBAABJCAgEBYUdcgkMKIZnOGWgDBgsiCQgCETg9F8JgisoLBGS5BIJggE8wwmNFs0JzZ6BZiaCQ+QKuIKc3AClDOIEoQEGC3sTwGCwbl0QoJmYmQiKiBmaOWXgMWsGM6Rgh0BMABhgZgYEYCQAAsCCHUFnb5IAAiSRIAQIAUEBgpPnUlKTJAbYMGtNCmyYFUMzNDMziCAAzTAMDUiwjZAyrBiGI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ZfPeN6CURoeqQYH8tmfNy3watglkB3kOfENkidifqBNghM+8hjmUl/fbqU8PuWWKk52vSJx73eT6TatXv/YYJWOuoO/eeMpoPXDM72Uo07oRwajZ+cvUG67OyMmdcM+0IVdfX1jes0VTzL7bn2r6cMJnwQwz6JGtzQEBV/j/arBrEj5otI5wuXXw5jFrg81//2jd+682HTnIzJl5bQZdee1Njz2fEwpkOZQhKSDIKLVp3ZoOPfo6OflRxVFlogoxZVIG/mpaZ9PpF/mt8MntzRZDA2T7EZz07EKAiMDM1mkkNZKG7bxBG24+cezYjs3EumNlr/ZdyzNdJ0NSpkNBQa4AAymDhOao4mbFzcq0KMQVK2adHk+bNGGyT+gICDgZDoX81njGffooYxMc5BgIDYCZiAxrJkMULC5tV1IqCUFJrXRrW5AxMIyE4bhCszIRxc0exzQnta8vgshCLc6i4YCgkISTISkofD+VbnKUzicSBA0QsxHkMRxmJhJgJh/BAgRXWMvhFxcDysDj1hk5YgpW/VLGFhAcsPQ53pokBARCEiFJ/wvRk/sWUSzifgAAAABJRU5ErkJggg==);
</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/README.md">
<INLINE>
**&name; Plugin**

The plugin installs Rclone. 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 Drive
* Microsoft One Drive
* Hubic
* Backblaze B2
* Yandex Disk
* The local filesystem

Go to http://rclone.org/ for more information.

</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/~daily_backup.cron">
<INLINE>
# daily backup of test folder to blackblaze b2 mytest bucket (with log option)
#0 0 * * * /boot/config/plugins/&name;/rclone_helper --log sync /mnt/user/Public/test b2:mytest &> /dev/null
</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/rclone_helper" Mode="0755">
<INLINE>
#!/bin/bash
log=false
args=()
for i in "$@" ; do
    if [[ $i = "--log" ]] ; then
        log=true
        continue
    fi

    if [[ $i = "-l" ]] ; then
        log=true
        continue
    fi
args+=($i)
done

config=/boot/config/plugins/&name;/.rclone.conf

logfile=/boot/config/plugins/&name;/logs/rclone-$(date "+%Y%m%d").log
if [ "$log" = true ] && [ ${#args[@]} -ge 1 ]; then
rclone --config $config "${args[@]}" >> $logfile 2>&1
else
rclone --config $config "$@";
fi;
</INLINE>
</FILE>

</PLUGIN>

 

I did see that and installed it. Haven't messed with it yet. I don't think they have rclone in nerdtools. If it did this plugin wouldn't be necessary since all it does is install it. I may take a stab at making the plugin more user friendly but I doubt I'll have the time.

Link to comment

Ummm, what do you mean, it doesnt give you a pretty GUI, but it does everything its suppose to, it installs it, makes a cron file for you to edit to setup your jobs that you want to sync.  What else you want it to do?

 

If you want to "Mount" the drives, then I would suggest you put that command in your "GO" file so it gets executed on start up, or make a cron entry to check if the mount is there, if not start it.

Link to comment

Ummm, what do you mean, it doesnt give you a pretty GUI, but it does everything its suppose to, it installs it, makes a cron file for you to edit to setup your jobs that you want to sync.  What else you want it to do?

 

If you want to "Mount" the drives, then I would suggest you put that command in your "GO" file so it gets executed on start up, or make a cron entry to check if the mount is there, if not start it.

 

Well, I don't have a problem with that but for the less technical, or just to make it more cohesive with the rest of unraid, I might make a config page so others that aren't comfortable in the CLI  don't have to mess with it or the GO file.

Link to comment

Ummm, what do you mean, it doesnt give you a pretty GUI, but it does everything its suppose to, it installs it, makes a cron file for you to edit to setup your jobs that you want to sync.  What else you want it to do?

 

If you want to "Mount" the drives, then I would suggest you put that command in your "GO" file so it gets executed on start up, or make a cron entry to check if the mount is there, if not start it.

 

Well, I don't have a problem with that but for the less technical, or just to make it more cohesive with the rest of unraid, I might make a config page so others that aren't comfortable in the CLI  don't have to mess with it or the GO file.

 

Good luck lol, more power too ya.  This is a good starting point for most people and it answered a few questions with the docker/encryption not syncing.  You also dont really need to do anything from the command line, you can just edit the files from the share.  The only thing would be the "update_cron" when you edit the cron file.  Trust me I dont like editing from the CLI either lol but I can smack a few lines in every now and then if I can do most of the lifting just thru editing a file from the share.

 

 

Link to comment

DZMM:

 

You need to change your config for the "Secret"

 

Apparently they dont make it clear that you need to set a "Path" when you setup up your remote.

https://github.com/ncw/rclone/issues/640

 

So mine looks like:  Where Amazon is the name of my Remote.  Then when you copy/sync to your "Secret" or "AmazonEncrypted" in my case, the files get upload to this "Encrypted" Directory

 

[AmazonEncrypted]
type = crypt
remote = Amazon:Encrypted
filename_encryption = standard
password = XXXX
password2 = XXXX

 

So this is putting my config files for SABNZBD into my Encrypted Folder in a folder called "Test"  (Note) the test folder name will also be encrypted
root@Tower:/usr/sbin# rclone --config /boot/config/plugins/rclone/.rclone.conf  --transfers 1 copy  /mnt/user/DockerConfigs/SABnzbd AmazonEncrypted:Test
2016/09/30 14:55:31
Transferred:   16.837 MBytes (279.299 kBytes/s)
Errors:                 0
Checks:                 0
Transferred:            7
Elapsed time:      1m1.7s
Transferring:
*                            logs/sabnzbd.log.1: 36% done. avg:  399.9, cur:  384.2 kByte/s. ETA: 8s

2016/09/30 14:56:23 Encrypted amazon drive root 'Encrypted/a6al9sfhheqspa5rip7agsq7mc': Waiting for checks to finish
2016/09/30 14:56:23 Encrypted amazon drive root 'Encrypted/a6al9sfhheqspa5rip7agsq7mc': Waiting for transfers to finish
2016/09/30 14:56:25
Transferred:   29.868 MBytes (264.645 kBytes/s)
Errors:                 0
Checks:                 0
Transferred:           22
Elapsed time:     1m55.5s

 

Ahh, thanks for clearing that up.  I'll have a go at this later. 

Link to comment

Ummm, what do you mean, it doesnt give you a pretty GUI, but it does everything its suppose to, it installs it, makes a cron file for you to edit to setup your jobs that you want to sync.  What else you want it to do?

 

 

Installed plugin with ease and did test manual sync which worked - thanks!

 

Question from a non-technical person, what's the right format for entries in the cron file?

 

Original:

 

# daily backup of test folder to blackblaze b2 mytest bucket (with log option)
#0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Public/test b2:mytest &> /dev/null

 

is this correct?

 

0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Public secret:Public &> /dev/null
0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Music secret:Music &> /dev/null

Link to comment

Ummm, what do you mean, it doesnt give you a pretty GUI, but it does everything its suppose to, it installs it, makes a cron file for you to edit to setup your jobs that you want to sync.  What else you want it to do?

 

 

Installed plugin with ease and did test manual sync which worked - thanks!

 

Question from a non-technical person, what's the right format for entries in the cron file?

 

Original:

 

# daily backup of test folder to blackblaze b2 mytest bucket (with log option)
#0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Public/test b2:mytest &> /dev/null

 

is this correct?

 

0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Public secret:Public &> /dev/null
0 0 * * * /boot/config/plugins/rclone/rclone_helper --log sync /mnt/user/Music secret:Music &> /dev/null

 

Maybe this will help:

 

http://crontab.guru/

 

or this:

 

http://www.cronmaker.com/

Link to comment

Your cron entries look right, not sure if you need the "&> /dev/null" at the end.  Just make sure you rename the file something like that ends in ".cron"  I made mine 'rclone.cron' and then run "update_cron" (ssh in and run from command line), then run 'cat /etc/cron.d/root' to see the entries in the cron.

Link to comment

Your cron entries look right, not sure if you need the "&> /dev/null" at the end.  Just make sure you rename the file something like that ends in ".cron"  I made mine 'rclone.cron' and then run "update_cron" (ssh in and run from command line), then run 'cat /etc/cron.d/root' to see the entries in the cron.

 

Thanks.  It was the "&> /dev/null" bit at the end I wasn't sure about as I don't know what it did - I'll remove.

 

Thanks for the extra bits on how to add the cron job.  Working good so far.

Link to comment

PlugIn:  Here is the code if you want to make this a plugin instead.  I found this code in another post on UnRaid, I just made a couple of tweaks to make it work.  Just call it "Rclone.plg" and put it on your Flash Drive, then install the plugin from the directory that you copied the file from.

 

<?xml version='1.0' standalone='yes'?>

<!DOCTYPE PLUGIN [
<!ENTITY name      "rclone">
<!ENTITY author    "aschamberger">
<!ENTITY version   "2016.09.25">
<!ENTITY pluginURL "&name;.plg">
]>

<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;">

<CHANGES>
##&name;

###2016.09.25
- add .cron file template for daily backup (use 'update_cron' to reload changes and 'cat /etc/cron.d/root' to see current config)
- update rclone to v1.33

###2016.08.15
- add myrclone with config + transfers parameter 
- add log dir for --log option of myrclone

###2016.08.14
- initial version
</CHANGES>

<!--

This plugin installs Rclone on unRAID systems.
Thanks to stignz for his great guide: https://lime-technology.com/forum/index.php?topic=46663.0

-->

<FILE Run="/bin/bash" Method="install">
<INLINE>
# version could be 'current' also
rcloneversion=current
rclonefile=rclone-$rcloneversion-linux-amd64.zip

if [ -d /usr/local/emhttp/plugins/&name; ]; then
  rm -rf /usr/local/emhttp/plugins/&name;
fi;

mkdir -p /boot/config/plugins/&name;/install/
if [ -f /boot/config/plugins/&name;/install/ca-certificates.crt ]; then
  rm -f /boot/config/plugins/&name;/install/ca-certificates.crt
fi;
curl -o /boot/config/plugins/&name;/install/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

if [ -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip ]; then
  rm -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip
fi;
wget http://downloads.rclone.org/$rclonefile -O /boot/config/plugins/&name;/install/$rclonefile

if [ -d /boot/config/plugins/&name;/install/rclone-v*/ ]; then
  rm -rf /boot/config/plugins/&name;/install/rclone-v*/
fi;
unzip /boot/config/plugins/&name;/install/$rclonefile -d /boot/config/plugins/&name;/install/

cp /boot/config/plugins/&name;/install/rclone-v*/rclone /usr/sbin/
chown root:root /usr/sbin/rclone
chmod 755 /usr/sbin/rclone

mkdir -p /etc/ssl/certs/
cp /boot/config/plugins/&name;/install/ca-certificates.crt /etc/ssl/certs/

if [ ! -f /boot/config/plugins/&name;/.rclone.conf ]; then
  touch /boot/config/plugins/&name;/.rclone.conf;
fi;

mkdir -p /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been installed."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Run="/bin/bash" Method="remove">
<INLINE>
rm -rf /boot/config/plugins/&name;/install
rm -rf /usr/local/emhttp/plugins/&name;
rm -f /usr/sbin/rclone;
rm -f /usr/sbin/myrclone;
rm -f /etc/ssl/certs/ca-certificates.crt

rm -f /boot/config/plugins/&name;/~daily_backup.cron

# we keep config and logs
#rm -f /boot/config/plugins/&name;/.rclone.conf;
#rm -f /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been uninstalled."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/&name;.png" Type="base64">
<INLINE>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAASx0lEQVRYw2WZeXRUVbbGv33OrVtVmRMSyMCchBkhioAiiI0CNjZqCzhjq6A+Re0G51bbCcWxtVVEwBlEhQbFbuluVEBABhECyNCEAIEwyBCSSqWme87Z749zK/DWq3VXVq2sm3vP2Wfvb/++HXp3b8xjTmpOGqQMKwMGCBAEAIbBAABJCAgEBYUdcgkMKIZnOGWgDBgsiCQgCETg9F8JgisoLBGS5BIJggE8wwmNFs0JzZ6BZiaCQ+QKuIKc3AClDOIEoQEGC3sTwGCwbl0QoJmYmQiKiBmaOWXgMWsGM6Rgh0BMABhgZgYEYCQAAsCCHUFnb5IAAiSRIAQIAUEBgpPnUlKTJAbYMGtNCmyYFUMzNDMziCAAzTAMDUiwjZAyrBiGIQhC6+b6A6f27ybhtOtdFc4vYiIB2BsAMMMFCDAMw/4h2HOQAg5RQCBA5GRJkgQD1oBnyDPsETzAMBSzMjAAGALQYM0UbWw4uXdHSf8LjJDawIABkFbr/vbkrm++iDeeIqLc9p0H3vZAz9/dSAQDELHQAIgBSWDAgO0qBYEACUiCPXHHlWTAniBPICWhGB6zYvKYwTCAZjAzMZ/au3vfv7/YvXR+siXy+w9X5Jb3squRoK3vv/bzvLfz2ncZ8fBLxpgf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/mt8MntzRZDA2T7EZz07EKAiMDM1mkkNZKG7bxBG24+cezYjs3EumNlr/ZdyzNdJ0NSpkNBQa4AAymDhOao4mbFzcq0KMQVK2adHk+bNGGyT+gICDgZDoX81njGffooYxMc5BgIDYCZiAxrJkMULC5tV1IqCUFJrXRrW5AxMIyE4bhCszIRxc0exzQnta8vgshCLc6i4YCgkISTISkofD+VbnKUzicSBA0QsxHkMRxmJhJgJh/BAgRXWMvhFxcDysDj1hk5YgpW/VLGFhAcsPQ53pokBARCEiFJ/wvRk/sWUSzifgAAAABJRU5ErkJggg==);
</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/README.md">
<INLINE>
**&name; Plugin**

The plugin installs Rclone. 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 Drive
* Microsoft One Drive
* Hubic
* Backblaze B2
* Yandex Disk
* The local filesystem

Go to http://rclone.org/ for more information.

</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/~daily_backup.cron">
<INLINE>
# daily backup of test folder to blackblaze b2 mytest bucket (with log option)
#0 0 * * * /boot/config/plugins/&name;/rclone_helper --log sync /mnt/user/Public/test b2:mytest &> /dev/null
</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/rclone_helper" Mode="0755">
<INLINE>
#!/bin/bash
log=false
args=()
for i in "$@" ; do
    if [[ $i = "--log" ]] ; then
        log=true
        continue
    fi

    if [[ $i = "-l" ]] ; then
        log=true
        continue
    fi
args+=($i)
done

config=/boot/config/plugins/&name;/.rclone.conf

logfile=/boot/config/plugins/&name;/logs/rclone-$(date "+%Y%m%d").log
if [ "$log" = true ] && [ ${#args[@]} -ge 1 ]; then
rclone --config $config "${args[@]}" >> $logfile 2>&1
else
rclone --config $config "$@";
fi;
</INLINE>
</FILE>

</PLUGIN>

 

Are you going to submit this to CA?  It works perfectly and I'm sure other people will thank you when they know it's available

Link to comment

my /root/.rclone.conf file that I create via the plugin keeps getting deleted when I reboot.  How do I stop this happening?

 

root@DZMM:~# rclone config
2016/10/01 16:55:10 Failed to load config file "/root/.rclone.conf" - using defaults: open /root/.rclone.conf: no such file or directory

 

Thanks

 

Link to comment

my /root/.rclone.conf file that I create via the plugin keeps getting deleted when I reboot.  How do I stop this happening?

 

root@DZMM:~# rclone config
2016/10/01 16:55:10 Failed to load config file "/root/.rclone.conf" - using defaults: open /root/.rclone.conf: no such file or directory

 

Thanks

 

I suppose this happens when using the plugin and not the docker container?

Link to comment

my /root/.rclone.conf file that I create via the plugin keeps getting deleted when I reboot.  How do I stop this happening?

 

root@DZMM:~# rclone config
2016/10/01 16:55:10 Failed to load config file "/root/.rclone.conf" - using defaults: open /root/.rclone.conf: no such file or directory

 

Thanks

 

I suppose this happens when using the plugin and not the docker container?

 

ok, I've solved the problem with the plugin by referring to the original post.  At boot the plugin reinstalls rclone and in the original post, the script also copied the .rclone.conf back to /root/.  So, I added and amended the line to copy the rclone.conf file from /boot/config/plugins/rclone/ to  /root/ at boot;

 

cp /boot/config/plugins/rclone/.rclone.conf /root/;

 

Here's my amended plugin in full.  To use:

 

1. copy code and call Rclone.plg and save on flash drive as per bakes82 instructions

2. install plugin

3. run "rclone config" from SSH/command line

4. copy the /root/.rclone.conf file to /boot/config/plugins/rclone/.rclone.conf and make sure this version is up to date before rebooting if you make any future changes to the /root/ version

5. to create CRON jobs, add as new rows to the CRON file in /boot/config/plugins/rclone/ and rename to 'rclone.cron'.  Then run 'update_cron' from SSH/command line and then 'cat /etc/cron.d/root'

 

<?xml version='1.0' standalone='yes'?>

<!DOCTYPE PLUGIN [
<!ENTITY name      "rclone">
<!ENTITY author    "aschamberger">
<!ENTITY version   "2016.09.25">
<!ENTITY pluginURL "&name;.plg">
]>

<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;">

<CHANGES>
##&name;

###2016.09.25
- add .cron file template for daily backup (use 'update_cron' to reload changes and 'cat /etc/cron.d/root' to see current config)
- update rclone to v1.33

###2016.08.15
- add myrclone with config + transfers parameter 
- add log dir for --log option of myrclone

###2016.08.14
- initial version
</CHANGES>

<!--

This plugin installs Rclone on unRAID systems.
Thanks to stignz for his great guide: https://lime-technology.com/forum/index.php?topic=46663.0

-->

<FILE Run="/bin/bash" Method="install">
<INLINE>
# version could be 'current' also
rcloneversion=current
rclonefile=rclone-$rcloneversion-linux-amd64.zip

if [ -d /usr/local/emhttp/plugins/&name; ]; then
  rm -rf /usr/local/emhttp/plugins/&name;
fi;

mkdir -p /boot/config/plugins/&name;/install/
if [ -f /boot/config/plugins/&name;/install/ca-certificates.crt ]; then
  rm -f /boot/config/plugins/&name;/install/ca-certificates.crt
fi;
curl -o /boot/config/plugins/&name;/install/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

if [ -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip ]; then
  rm -f /boot/config/plugins/&name;/install/rclone-*-linux-amd64.zip
fi;
wget http://downloads.rclone.org/$rclonefile -O /boot/config/plugins/&name;/install/$rclonefile

if [ -d /boot/config/plugins/&name;/install/rclone-v*/ ]; then
  rm -rf /boot/config/plugins/&name;/install/rclone-v*/
fi;
unzip /boot/config/plugins/&name;/install/$rclonefile -d /boot/config/plugins/&name;/install/

cp /boot/config/plugins/&name;/install/rclone-v*/rclone /usr/sbin/
chown root:root /usr/sbin/rclone
chmod 755 /usr/sbin/rclone

mkdir -p /etc/ssl/certs/
cp /boot/config/plugins/&name;/install/ca-certificates.crt /etc/ssl/certs/

if [ ! -f /boot/config/plugins/&name;/.rclone.conf ]; then
  touch /boot/config/plugins/&name;/.rclone.conf;
fi;

cp /boot/config/plugins/rclone/.rclone.conf /root/;

mkdir -p /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been installed."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Run="/bin/bash" Method="remove">
<INLINE>
rm -rf /boot/config/plugins/&name;/install
rm -rf /usr/local/emhttp/plugins/&name;
rm -f /usr/sbin/rclone;
rm -f /usr/sbin/myrclone;
rm -f /etc/ssl/certs/ca-certificates.crt

rm -f /boot/config/plugins/&name;/~daily_backup.cron

# we keep config and logs
#rm -f /boot/config/plugins/&name;/.rclone.conf;
#rm -f /boot/config/plugins/&name;/logs;

echo ""
echo "-----------------------------------------------------------"
echo " &name; has been uninstalled."
echo "-----------------------------------------------------------"
echo ""

</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/&name;.png" Type="base64">
<INLINE>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAASx0lEQVRYw2WZeXRUVbbGv33OrVtVmRMSyMCchBkhioAiiI0CNjZqCzhjq6A+Re0G51bbCcWxtVVEwBlEhQbFbuluVEBABhECyNCEAIEwyBCSSqWme87Z749zK/DWq3VXVq2sm3vP2Wfvb/++HXp3b8xjTmpOGqQMKwMGCBAEAIbBAABJCAgEBYUdcgkMKIZnOGWgDBgsiCQgCETg9F8JgisoLBGS5BIJggE8wwmNFs0JzZ6BZiaCQ+QKuIKc3AClDOIEoQEGC3sTwGCwbl0QoJmYmQiKiBmaOWXgMWsGM6Rgh0BMABhgZgYEYCQAAsCCHUFnb5IAAiSRIAQIAUEBgpPnUlKTJAbYMGtNCmyYFUMzNDMziCAAzTAMDUiwjZAyrBiGIQhC6+b6A6f27ybhtOtdFc4vYiIB2BsAMMMFCDAMw/4h2HOQAg5RQCBA5GRJkgQD1oBnyDPsETzAMBSzMjAAGALQYM0UbWw4uXdHSf8LjJDawIABkFbr/vbkrm++iDeeIqLc9p0H3vZAz9/dSAQDELHQAIgBSWDAgO0qBYEACUiCPXHHlWTAniBPICWhGB6zYvKYwTCAZjAzMZ/au3vfv7/YvXR+siXy+w9X5Jb3squRoK3vv/bzvLfz2ncZ8fBLxpgf33l++TP3OjkFXYeNJqNVU1OgTSH5NwOAAnT6rGGXyP7lCEAQJMEhuAJBAU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zNdJ0NSpkNBQa4AAymDhOao4mbFzcq0KMQVK2adHk+bNGGyT+gICDgZDoX81njGffooYxMc5BgIDYCZiAxrJkMULC5tV1IqCUFJrXRrW5AxMIyE4bhCszIRxc0exzQnta8vgshCLc6i4YCgkISTISkofD+VbnKUzicSBA0QsxHkMRxmJhJgJh/BAgRXWMvhFxcDysDj1hk5YgpW/VLGFhAcsPQ53pokBARCEiFJ/wvRk/sWUSzifgAAAABJRU5ErkJggg==);
</INLINE>
</FILE>

<FILE Name="/usr/local/emhttp/plugins/&name;/README.md">
<INLINE>
**&name; Plugin**

The plugin installs Rclone. 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 Drive
* Microsoft One Drive
* Hubic
* Backblaze B2
* Yandex Disk
* The local filesystem

Go to http://rclone.org/ for more information.

</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/~daily_backup.cron">
<INLINE>
# daily backup of test folder to blackblaze b2 mytest bucket (with log option)
#0 0 * * * /boot/config/plugins/&name;/rclone_helper --log sync /mnt/user/Public/test b2:mytest &> /dev/null
</INLINE>
</FILE>

<FILE Name="/boot/config/plugins/&name;/rclone_helper" Mode="0755">
<INLINE>
#!/bin/bash
log=false
args=()
for i in "$@" ; do
    if [[ $i = "--log" ]] ; then
        log=true
        continue
    fi

    if [[ $i = "-l" ]] ; then
        log=true
        continue
    fi
args+=($i)
done

config=/boot/config/plugins/&name;/.rclone.conf

logfile=/boot/config/plugins/&name;/logs/rclone-$(date "+%Y%m%d").log
if [ "$log" = true ] && [ ${#args[@]} -ge 1 ]; then
rclone --config $config "${args[@]}" >> $logfile 2>&1
else
rclone --config $config "$@";
fi;
</INLINE>
</FILE>

</PLUGIN>

Link to comment

I've read through the comments but am still not sure.  Does this automatically encrypt files if I want to send it to ACD or is there something extra I have to setup?  I see crypt on the rclone website, but wasn't sure if I needed to set  it up to go to crypt and then ACD or if it will encrypt files that I send to ACD already?

Link to comment

@DZMM

 

Can you try to mount an encrypted share from ACD and then see if this share can be mounted inside a docker? I've tried many solutions, and this is neither possible with docker or VM's.

 

I had a quick go last night without really knowing what I was doing, which failed. 

 

I've gone back to using duplication as decline rclone went bonkers with CPU usage maxing my CPU out at 100% constantly, which takes some doing.  I also find the GUI handy as I can track progress easily.

Link to comment

I've read through the comments but am still not sure.  Does this automatically encrypt files if I want to send it to ACD or is there something extra I have to setup?  I see crypt on the rclone website, but wasn't sure if I needed to set  it up to go to crypt and then ACD or if it will encrypt files that I send to ACD already?

 

You have to setup two remotes to encrypt to Amazon:

 

1. Setup first remote using option 1 which is unencrypted e.g 'acd

2. Then setup second remote e.g. 'secret' choose option 5 and then select remote 'acd' and setup encryption keys

2a. When choosing 'acd' above, you also have to set a location on Amazon e.g if you want your encrypted files to be stored in an 'unRAID' folder on amazon, when specifying the remote for option 5 put 'acd:unRAID' I.e. 'remote:location'. if you don't set a location the encrypted files dont go to Amazon and are stored in your appdata!!!!!

3. Then to sync say your media file you enter 'rclone sync /mnt/user/media secret:media' which will put the files in unRAID/media on amazon

Link to comment

I've read through the comments but am still not sure.  Does this automatically encrypt files if I want to send it to ACD or is there something extra I have to setup?  I see crypt on the rclone website, but wasn't sure if I needed to set  it up to go to crypt and then ACD or if it will encrypt files that I send to ACD already?

 

You have to setup two remotes to encrypt to Amazon:

 

1. Setup first remote using option 1 which is unencrypted e.g 'acd

2. Then setup second remote e.g. 'secret' choose option 5 and then select remote 'acd' and setup encryption keys

2a. When choosing 'acd' above, you also have to set a location on Amazon e.g if you want your encrypted files to be stored in an 'unRAID' folder on amazon, when specifying the remote for option 5 put 'acd:unRAID' I.e. 'remote:location'. if you don't set a location the encrypted files dont go to Amazon and are stored in your appdata!!!!!

3. Then to sync say your media file you enter 'rclone sync /mnt/user/media secret:media' which will put the files in unRAID/media on amazon

 

1)

docker exec -it Rclone rclone --config="/config/.rclone.conf" config

2) http://rclone.org/amazonclouddrive/

3) When asked about "Use auto config?" Choose N (no)

4) http://rclone.org/remote_setup/ Authorize rclone with ACD through another PC (your desktop PC)

5) http://rclone.org/crypt/ - Set up another encrypted remote which encrypts the one you set up in step 2,3,4

 

All data will be encrypted by rclone before being sent to ACD.

Link to comment

@DZMM

 

Can you try to mount an encrypted share from ACD and then see if this share can be mounted inside a docker? I've tried many solutions, and this is neither possible with docker or VM's.

 

I had a quick go last night without really knowing what I was doing, which failed. 

 

I've gone back to using duplication as decline went bonkers with CPU usage maxing my CPU out at 100% constantly, which takes some doing.  I also find the GUI handy as I can track progress easily.

 

Ok, so you're not going to test this?

 

I'm really curious whether this will work.

Link to comment

I've read through the comments but am still not sure.  Does this automatically encrypt files if I want to send it to ACD or is there something extra I have to setup?  I see crypt on the rclone website, but wasn't sure if I needed to set  it up to go to crypt and then ACD or if it will encrypt files that I send to ACD already?

 

You have to setup two remotes to encrypt to Amazon:

 

1. Setup first remote using option 1 which is unencrypted e.g 'acd

2. Then setup second remote e.g. 'secret' choose option 5 and then select remote 'acd' and setup encryption keys

2a. When choosing 'acd' above, you also have to set a location on Amazon e.g if you want your encrypted files to be stored in an 'unRAID' folder on amazon, when specifying the remote for option 5 put 'acd:unRAID' I.e. 'remote:location'. if you don't set a location the encrypted files dont go to Amazon and are stored in your appdata!!!!!

3. Then to sync say your media file you enter 'rclone sync /mnt/user/media secret:media' which will put the files in unRAID/media on amazon

 

1)

docker exec -it Rclone rclone --config="/config/.rclone.conf" config

2) http://rclone.org/amazonclouddrive/

3) When asked about "Use auto config?" Choose N (no)

4) http://rclone.org/remote_setup/ Authorize rclone with ACD through another PC (your desktop PC)

5) http://rclone.org/crypt/ - Set up another encrypted remote which encrypts the one you set up in step 2,3,4

 

All data will be encrypted by rclone before being sent to ACD.

 

Thanks guys!! I'll start working through this

Link to comment

@DZMM

 

Can you try to mount an encrypted share from ACD and then see if this share can be mounted inside a docker? I've tried many solutions, and this is neither possible with docker or VM's.

 

I had a quick go last night without really knowing what I was doing, which failed. 

 

I've gone back to using duplication as decline went bonkers with CPU usage maxing my CPU out at 100% constantly, which takes some doing.  I also find the GUI handy as I can track progress easily.

 

Ok, so you're not going to test this?

 

I'm really curious whether this will work.

 

I'll have another go tomorrow when I'm home - I'm curious to see if the 100% CPU usage was a one-off

Link to comment

Ive run a quick test doing a rclone copy to the amazon encrypted folder.  It was only 2 400mb files and I didnt see any spike that I could tell.  Where you running a FUSE mount also?  Maybe because youre uploading and mounting at same time it could be encrypting and decrypting and spiking cpu.

Link to comment
  • 2 weeks later...

OK! So using the plugin version, I was able to successfully add an encrypted Amazon share as well add a mount point. I haven't tested it with another program like Plex but I don't see any reason it won't work. Although throughput might be an issue. The problem I am having though is I cannot find a way to make the mount point accessible as a network share. Not super critical, but it would be nice. Anybody else had a chance to mess with this?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.