jcwillox / hassio-rclone-backup

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

Local download of Google Drive data #52

Open GMCfourX4 opened 6 months ago

GMCfourX4 commented 6 months ago

The problem

Thank you for all of your work on the add-on. I was able to get the add-on installed and connected to Google Drive. I can list the files that I am looking for in the browser. What I would like to do is to use the rclone sync functionality to bring a copy of my files onto the Home Assistant system so that I can access them from the 'Media' section of Home Assistant. When I try to setup a sync to a path such as /media/GoogleDrive I get errors that the location is read-only. I have tried a drive mount, but all of the ways I have tried to do that result in a 500 error.

What version of Rclone Backup has the issue?

3.1.0

What version of Home Assistant are you running?

2021.3.1

What type of installation are you running?

Home Assistant OS

If you're running HA OS/Supervised, what version of the Supervisor are you running?

2024.03.0

Example YAML snippet

- name: Sync Media
  schedule: 1 * * * *
  command: sync
  sources:
    - "GoogleDrive:"
  destination: /media/gdrive

Anything in the logs that might be useful for us?

No response

Additional information

No response

BenediktStuhrmann commented 5 months ago

Hey, I'm having a similar problem where I want to move data from my Google Drive to the /share/ folder. Getting the same read-only error. Did you manage to figure out a solution @GMCfourX4?

CFDataDevOps commented 5 months ago

Sorry, I haven't found a solution, and haven't received a response from anyone who's familiar with the code. I'm happy to try some other options if anyone can suggest things to try.

ngocleek commented 4 months ago

The media and shared folders are set to read-only, so data can't be written to those locations. To work around this, make a new subfolder in /backup or /config and choose it as the destination. After that, you can customize additional media folders.

image

Additionally, I've submitted pull request #57 to address this issue.