# Crontab - didn't find section in config file

**URL:** <https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976>\
**Category:** Help and Support\
**Created:** [October 23, 2020, 2:22pm UTC](https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976 "2020-10-23T14:22:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hmax\_TI](https://forum.rclone.org/user_avatar/forum.rclone.org/hmax_ti/32/7528_2.png) [@Hmax\_TI](https://forum.rclone.org/u/Hmax_TI)\
**Post date:** [October 23, 2020, 2:22pm UTC](https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976/1 "2020-10-23T14:22:53Z")

</div>

#### What is the problem you are having with rclone?

I made a script with the following command:

- /usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

If I run this script directly it will work normally. But now the time I put it on the crontab:

- / 1 \* \* \* \* /root/gbk.sh\> / dev / null 2 ​​\>\> /tmp/gbk.txt

Then he presents this error:

- 2020/10/23 11:10:01 DEBUG: Creating backend with remote "/ root / test /"
- 2020/10/23 11:10:01 NOTICE: Config file "/.config/rclone/rclone.conf" not found - using defaults
- 2020/10/23 11:10:01 DEBUG: Creating backend with remote "google-drive: LinuxDocs"
- 2020/10/23 11:10:01 Failed to create file system for "google-drive: LinuxDocs": didn't find section in config file

#### What is your rclone version (output from `rclone version`)

rclone v1.53.1

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)

os/arch: linux/amd64  
Centos 6.10

#### Which cloud storage system are you using? (eg Google Drive)

Google Drive

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

- /usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

```auto

```

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

- 2020/10/23 11:10:01 DEBUG: Creating backend with remote "/ root / test /"
- 2020/10/23 11:10:01 NOTICE: Config file "/.config/rclone/rclone.conf" not found - using defaults
- 2020/10/23 11:10:01 DEBUG: Creating backend with remote "google-drive: LinuxDocs"
- 2020/10/23 11:10:01 Failed to create file system for "google-drive: LinuxDocs": didn't find

```auto

```

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

```auto
Paste log here

```

---

<div class="post-metadata">

**Author:** ![blim5001](https://forum.rclone.org/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@blim5001](https://forum.rclone.org/u/blim5001)\
**Post date:** [October 23, 2020, 2:40pm UTC](https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976/2 "2020-10-23T14:40:06Z")

</div>

I would try adding the path to the config file in your command in the script:

```auto
/usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

```

add this but change to the correct path for your config file

```auto
--config="/path/to/rclone.conf"

```

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [October 23, 2020, 2:44pm UTC](https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976/3 "2020-10-23T14:44:16Z")

</div>

Use this `rclone config file` to find the config file location and add that to your script like `--config=<path from command>`

---

<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:** [October 26, 2020, 2:44pm UTC](https://forum.rclone.org/t/crontab-didnt-find-section-in-config-file/19976/4 "2020-10-26T14:44:17Z")

</div>

Closed on October 26, 2020, 2:44pm UTC

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