Latest News:
2019-02-21: XigmaNAS 12.0.0.4.6536 - BETA released!
2019-02-21: XigmaNAS 11.2.0.4.6536 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

[EXTENSION] Rclone

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
User avatar
Snufkin
Advanced User
Advanced User
Posts: 258
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [EXTENSION] Rclone

#31

Post by Snufkin » 02 Dec 2018 18:17

crest wrote:
01 Dec 2018 17:16
...upcoming release.
Dear Crest

Accidentally found new Rclone Extension v1.2 release.
Thank you for very fast response to my findings, could confirm fixed all bugs found earlier.

However, there are still a couple of roughnesses.

Case: Single quotes
Steps:
  1. Create dummy task and put in "Additional Parameters" somthing single-quoted like

    Code: Select all

    --exclude 'Dir not to sync/**'
  2. Push button "Edit task" in "Task list" for just created task
  3. Look at "Additional Parameters / Single Command" field in "Add Task / Execute Single Command" table
Results:
  • Everything that was in the line after the first single quote disappeared

Case: Backslashes
Steps:
  1. Create dummy task and put in "Additional Parameters" double-quoted

    Code: Select all

    --exclude "Dir not to sync/**"
  2. Push button "Execute task" in "Task list" for just created task
Results:
  • Above parameter
    • on screen: Ok

      Code: Select all

      --exclude "Dir not to sync/**"
    • in task script: extra backslashes

      Code: Select all

      --exclude "Dir not to sync/\*\*"
    • in system log: extra double backslashes

      Code: Select all

      "--exclude" "Dir not to sync/\\*\\*"
  • Rclone doesn't accept backslashes (see Rclone filtering, includes and excludes) and continues without this parameter.
XNAS 11.2.0.4.6400 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

DexDeadly
NewUser
NewUser
Posts: 11
Joined: 24 Nov 2014 04:05
Status: Offline

Re: [EXTENSION] Rclone

#32

Post by DexDeadly » 19 Jan 2019 22:10

So I just installed this and I am feeling like I am missing something. I finally after messing around was able to get the gdrive to mount. However when I try to view the mount through windows explorer it says I have no permissions to do so. I can go to file manager and I can see the files there, however this is the only way. Shouldn't I be able to view the files through windows explorer.

User avatar
Snufkin
Advanced User
Advanced User
Posts: 258
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [EXTENSION] Rclone

#33

Post by Snufkin » 11 Feb 2019 09:56

Snufkin wrote:
02 Dec 2018 18:17
crest wrote:
01 Dec 2018 17:16
...upcoming release.
Accidentally found new Rclone Extension v1.2 release.
...
Results:
Tested latest Rclone v1.46 and accidentally found solid workaround for tricky exclude wildcards.

To avoid parsing issues in Rclone extension, I used option --exclude-from and put my rules in a separate file (see Rclone Read exclude patterns from file doc page).

Thus, the Rclone utility directly reads matching patterns from the file and bypasses pattern limitation in Rclone Extension script.

Note: If the rule contains a path with spaces, you do not need to enclose it in quotation marks inside the file.
XNAS 11.2.0.4.6400 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

User avatar
Snufkin
Advanced User
Advanced User
Posts: 258
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [EXTENSION] Rclone

#34

Post by Snufkin » 11 Feb 2019 14:32

Another way to improve Rclone extension

Case: Edit cron job
Steps:
  1. Create cron job using aproproate button on Rclone extension page
  2. Save 1st copy of XigmaNAS config file
  3. Edit cron job Weekdays - disable all except Tuesday, then save job
  4. Save 2nd copy of XigmaNAS config file
Results:
  • Before edition Days, Months and Weekdays are enabled but not selected (see screenshot below)
    rclone-default-cron-job.jpg
  • Appropriate cron job in 1st copy of config file

    Code: Select all

    <job>
    	<enable type="bool">1</enable>
    	<uuid>723f4cfe-fb33-4c7a-8f67-da1768037c1c</uuid>
    	<desc>Rclone task yd-v0</desc>
    	<minute>0</minute>
    	<hour>1</hour>
    	<day type="bool">1</day>
    	<month type="bool">1</month>
    	<weekday type="bool">1</weekday>
    	<all_mins>0</all_mins>
    	<all_hours>0</all_hours>
    	<all_days>1</all_days>
    	<all_months>1</all_months>
    	<all_weekdays>1</all_weekdays>
    	<who>root</who>
    	<command>/persistent/path/rclone/tasks/rclone-task-yd-v0.sh</command>
    </job>
  • Screenshot after changes in Weekdays were made
    rclone-cron-job-modif.jpg
  • Appropriate cron job in 2nd copy of config file

    Code: Select all

    <job>
    	<enable type="bool">1</enable>
    	<uuid>723f4cfe-fb33-4c7a-8f67-da1768037c1c</uuid>
    	<desc>Rclone task yd-v0</desc>
    	<minute>0</minute>
    	<hour>1</hour>
    	<day>1</day>
    	<day>2</day>
    	<day>3</day>
    	<day>4</day>
    	<day>5</day>
    	<day>6</day>
    	<day>7</day>
    	<day>8</day>
    	<day>9</day>
    	<day>10</day>
    	<day>11</day>
    	<day>12</day>
    	<day>13</day>
    	<day>14</day>
    	<day>15</day>
    	<day>16</day>
    	<day>17</day>
    	<day>18</day>
    	<day>19</day>
    	<day>20</day>
    	<day>21</day>
    	<day>22</day>
    	<day>23</day>
    	<day>24</day>
    	<day>25</day>
    	<day>26</day>
    	<day>27</day>
    	<day>28</day>
    	<day>29</day>
    	<day>30</day>
    	<day>31</day>
    	<month>1</month>
    	<month>2</month>
    	<month>3</month>
    	<month>4</month>
    	<month>5</month>
    	<month>6</month>
    	<month>7</month>
    	<month>8</month>
    	<month>9</month>
    	<month>10</month>
    	<month>11</month>
    	<month>12</month>
    	<weekday>2</weekday>
    	<all_mins>0</all_mins>
    	<all_hours>0</all_hours>
    	<all_days>1</all_days>
    	<all_months>1</all_months>
    	<all_weekdays>0</all_weekdays>
    	<who>root</who>
    	<command>/persistent/path/rclone/tasks/rclone-task-yd-v0.sh</command>
    </job>
It seems that when cron job is created, all Days, Months and Weekdays options are incorrectly enabled.
You do not have the required permissions to view the files attached to this post.
XNAS 11.2.0.4.6400 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

Post Reply

Return to “Extensions / Add-ons”