Add rclone extra option for OneDrive to Cloud Sync Task

svenny

Dabbler
Joined
Nov 10, 2018
Messages
10
Hi all,

I'm trying to add an extra rclone option ( --ignore-size ) for a synchronization ( PUSH ) to OneDrive. The problem is that I receive a lots of errors like this:

corrupted on transfer: sizes differ 26624 vs 38400

I've found this solution on rclone forum:

Rclone Issue 1718

Is there a way to include this option somewhere? In the Cloud Sync Task page I cannot see any field to add it.

I'm using FreeNAS-11.3-U5.

Many thanks in advance.

Cheers
 

svenny

Dabbler
Joined
Nov 10, 2018
Messages
10
Hi all,

I'm trying to add an extra rclone option ( --ignore-size ) for a synchronization ( PUSH ) to OneDrive. The problem is that I receive a lots of errors like this:

corrupted on transfer: sizes differ 26624 vs 38400

I've found this solution on rclone forum:

Rclone Issue 1718

Is there a way to include this option somewhere? In the Cloud Sync Task page I cannot see any field to add it.

I'm using FreeNAS-11.3-U5.

Many thanks in advance.

Cheers

I've found the following Python file:

/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py

At some point I've found this code:

Code:
    # Use a temporary file to store rclone file

    async with RcloneConfig(cloud_sync) as config:

        args = [

            "/usr/local/bin/rclone",

            "--config", config.config_path,

            "-v",

            "--stats", "1s",

        ]


Do you think it's going to work if I modify this piece of code like this?

Code:
    # Use a temporary file to store rclone file

    async with RcloneConfig(cloud_sync) as config:

        args = [

            "/usr/local/bin/rclone",

            "--config", config.config_path,

            "-v",
            
            '--ignore-size',

            "--stats", "1s",

        ]


Thank you.

Cheers,
Svenny
 

svenny

Dabbler
Joined
Nov 10, 2018
Messages
10
I have implemented a test environment and yes it worked.

Cheers,
Svenny
 
Top