jcwillox / hassio-rclone-backup

Home Assistant addon to automatically sync backups to remote locations using Rclone
MIT License
115 stars 19 forks source link

OneDrive service not working #9

Closed Darkglacius closed 2 years ago

Darkglacius commented 2 years ago

Hello

Im trying to setup this addon for onedrive sync, but nothing happens based on the log.

From rclone.conf

[onedrive]
type = onedrive
token = {"access_token":"xxxxxxxxxxxxxxxxxxx"}
drive_id = 1xxxxxxxxxxxxxxxx1
drive_type = personal

From addon config

schedule: 10 4 * * *
command: sync
sources:
  - /backup
destination: onedrive:/Backup/Home Assistant
include: []
exclude: []
flags: []
dry_run: false
config_path: /config/rclone.conf

From logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Rclone Backup
 Automatically sync backup to remote locations using rclone
-----------------------------------------------------------
 Add-on version: 1.2.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.6  (amd64 / qemux86-64)
 Home Assistant Core: 2021.12.1
 Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] rclone.sh: executing... 
[21:34:34] INFO: Rclone configuration found
[21:34:34] INFO: Installed rclone version:
[21:34:34] INFO: rclone v1.57.0
- os/version: alpine 3.15.0 (64 bit)
- os/kernel: 5.10.75 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
[21:34:34] INFO: Setup rclone backup cron...
[cont-init.d] rclone.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:34:34] INFO: Starting rclone backup cron...

Do you have any idea what could be wrong?

Thanks

jcwillox commented 2 years ago

Based on that log the sync hasn't actually run yet and is configured to run at 4:10am each day. You should definitely get some output at 4:10am otherwise it's not onedrive it's the code that's broken.