MyPoorUnraid

Members
  • Posts

    1
  • Joined

MyPoorUnraid's Achievements

Noob

Noob (1/14)

2

Reputation

  1. Hello, thanks for this docker. I've just finished setting it up, and wanted to share a possible workaround for the issue mentioned here: https://github.com/binhex/arch-rclone/issues/1 Note: while I am familiar with docker/linux/unraid, I am by no means an expert - there is likely a better way to do what I am doing, so don't hesitate to improve on this approach, or tell me why it's a bad idea. In short, I set my docker up to not copy or sync anything in the start.sh script, and instead utilize a user script to do my syncing. After setting up the docker as normal, I changed the following parameters in the container: RCLONE_MEDIA_SHARES is now set to a single sub-folder in /media as it causes an error if empty, but the actual folder doesn't matter as I don't sync it this way RCLONE_SLEEP_PERIOD is set to 30d, but any long duration should work RCLONE_USER_FLAGS is set to "--dry-run". This is what prevents the start script from doing any actual syncing RCLONE_POST_CHECK and ENABLE_WEBUI are both set to "no", as I don't use these With this configuration, I created a user script with the following: #!/bin/bash docker exec binhex-rclone sh -c "if [ ! -f /home/nobody/.config/rclone/rclone.conf ]; then ln -s /config/rclone/config/rclone.conf /home/nobody/.config/rclone/rclone.conf; fi" docker exec binhex-rclone sh -c "rclone sync -P /media/folder remote:Pictures" The first docker exec line creates a link for the config file so that the second line can run (only if the desired config file does not already exist). The second docker exec line calls the docker container and runs a sync command that syncs the folder "folder" from the media path (replace with your appropriate folder name) to the remote destination "remote:Pictures". For me, this creates the contents of /media/folder in my Pictures folder on my remote destination, and not in a "media" folder. So, if I have a folder called "holiday" inside of /media/folder and I run this script, it will create a corresponding folder on onedrive (my remote) inside the Pictures folder there. Meaning: /media/folder/holiday becomes onedrive:Pictures/holiday I only just got this working, but my intent is to set the script to run on a schedule (daily).