# Set specific times for rclone to sync newly downloaded data

**URL:** <https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485>\
**Category:** Help and Support\
**Created:** [January 10, 2022, 2:11am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485 "2022-01-10T02:11:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 10, 2022, 2:11am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/1 "2022-01-10T02:11:49Z")

</div>

#### Rclone Syncing is causing streaming to be impossible. I am wanting to know if there is a way to specify a specific time of day for the syncing part of rclone to take place while keeping the drive mounted for use. Or is there something I should add/remove to my command to block/keep syncing from being a thing and then add/remove this part of the command before I go to bed each night to allow syncing to resume manually?

#### rclone v1.56.2

- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-92-generic (x86\_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.8
- go/linking: static
- go/tags: none

#### Google Drive

```auto
screen rclone mount --cache-dir=~/cache --vfs-cache-mode=full -v --dir-cache-time 1000h --poll-interval 0s --allow-other --vfs-cache-max-size 200G --vfs-cache-max-age 1h secret: ~/drive

```

#### The rclone config contents with secrets removed.

```auto
[GMedia]
type = drive
client_id = awholebunchofstuff.apps.googleusercontent.com
client_secret = 
scope = drive
token = 

[secret]
type = crypt
remote = GMedia:crypt
filename_encryption = standard
directory_name_encryption = true
password = 
password2 = 

```

#### A log from the command with the `-vv` flag

```auto
Couldn't figure out how to do this on Linux...

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [January 10, 2022, 2:57am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/2 "2022-01-10T02:57:46Z")

</div>

I am not sure what you mean by rclone syncing as you have a mount.

A mount only reads based on what is requested by the application. If your application is requesting things, they get downloaded.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 10, 2022, 1:07pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/3 "2022-01-10T13:07:17Z")

</div>

hi,

you can set schedule for `rclone sync` using  
`https://rclone.org/docs/#bwlimit-bandwidth-spec`  
and also use cron to start `rclone sync` at a certain time.

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 10, 2022, 1:07pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/4 "2022-01-10T13:07:48Z")

</div>

To clarify, when I download new items, let's say 200 individual episodes. Rclone encrypts and puts those on my google drive. while it does that my plex server is basically unusable. So I am wanting to know if there is a way to schedule the encrypting and uploading of new files to gdrive. Like, if I download new files in the middle of the day it will only encrypt and add those to gdrive between the hours of 10pm and 8am.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [January 10, 2022, 1:10pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/5 "2022-01-10T13:10:26Z")

</div>

You mean you are copying to the mount and uploading to your Google Drive?

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 10, 2022, 1:12pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/6 "2022-01-10T13:12:47Z")

</div>

Gonna level with you, I am not entirely clear on how the process works. I think it goes download file to temp directory\>sonarr/radarr move file to correct directory\>rclone sees new file and encrypts it\>rclone reuploads newly encrypted file to gdrive.

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 1:10am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/7 "2022-01-11T01:10:47Z")

</div>

If someone is streaming from the server and the server is using gdrive and transcoding. Would the stream be an upload or a download? Basically not sure what to limit here.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:18am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/8 "2022-01-11T01:18:33Z")

</div>

hi,

since the files are in gdrive, the server would have to stream/download the file.

let's say:

- the resolution of the file in gdrive is 4k
- the resolution that the client needs is 720k

1. the server would stream/download the file from gdrive in 4k.
2. the server would transcode it to 720k and stream to the client.

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 1:20am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/9 "2022-01-11T01:20:49Z")

</div>

So for the server it would all be download then?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:21am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/10 "2022-01-11T01:21:14Z")

</div>

that is correct

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 1:23am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/11 "2022-01-11T01:23:08Z")

</div>

So then would this command work for buffering issues? screen rclone mount --cache-dir=~/cache --vfs-cache-mode=full -v --dir-cache-time 1000h --poll-interval 0s --bwlimit 10M:off --allow-other --vfs-cache-max-size 200G --vfs-cache-max-age 1h secret: ~/drive

I added the bwlimit command

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:28am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/12 "2022-01-11T01:28:03Z")

</div>

it depends on your internet connection speeds, but give it a try

and if you are using gdrive, i would not use ` --poll-interval 0s`

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 1:48am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/13 "2022-01-11T01:48:13Z")

</div>

What poll interval would you use?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:52am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/14 "2022-01-11T01:52:05Z")

</div>

just do not use the flag, and use the default value.

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 1:54am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/15 "2022-01-11T01:54:04Z")

</div>

Okay, is there anything else I can do to help with buffering?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:55am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/16 "2022-01-11T01:55:58Z")

</div>

not sure your exact use case.  
so whatever command you choose, try it and see what happens.

and/or schedule your uploads

---

<div class="post-metadata">

**Author:** ![djvirt](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/f1d935/32.png) [@djvirt](https://forum.rclone.org/u/djvirt)\
**Post date:** [January 11, 2022, 2:20am UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/17 "2022-01-11T02:20:40Z")

</div>

How do I schedule my uploads?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [January 11, 2022, 1:05pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/18 "2022-01-11T13:05:13Z")

</div>

try using cron.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [January 11, 2022, 2:39pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/19 "2022-01-11T14:39:16Z")

</div>

So a couple things.

The way the bwlimit works is for both upload and download. If you set it to 10M, that impacts both download and upload.

You can use a per file limit to make sure that no one file saturates your bandwidth instead:

```auto
      --bwlimit-file BwTimetable Bandwidth limit per file in KiB/s, or use suffix B|K|M|G|T|P or a full timetable

```

Personally on Linux, I use mergerfs which adds another layer on top and all my writes happen to a local mounted area and I upload that on a scheduled basis since you can schedule rclone move/copy from the local mount point to your remote.

This requires a bit more knowledge and some time to setup but I do have my process documented here:

[animosity22/homescripts: My Scripts for Plex / Emby with Dropbox and rclone (github.com)](https://github.com/animosity22/homescripts)

Doesn't really matter what backend as the process is still the same. That might be a bit much if you are not that well versed on the Linux side of things so sticking with the per file limit would be an easier route, but with less customization.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [February 10, 2022, 2:39pm UTC](https://forum.rclone.org/t/set-specific-times-for-rclone-to-sync-newly-downloaded-data/28485/20 "2022-02-10T14:39:43Z")

</div>

Closed on February 10, 2022, 2:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
