#!/bin/bash

# ip addr add 192.168.10.18/24 dev br0

CONFIG_FILE=/boot/config/rclone/rclone.conf
LOG_FILE=/mnt/user/logs/rclone/rclone-mount-onedrive.log
CACHE_DRIVE=/mnt/user/appcache/rclone/rclone_onedrive

rclone mount onedrive: /mnt/cache_ssd/Cloud/onedrive --config $CONFIG_FILE \
--allow-other \
--dir-cache-time 100h \
--log-level ERROR \
--log-file $LOG_FILE \
--poll-interval 15s \
--cache-dir=$CACHE_DRIVE \
--vfs-cache-mode full \
--vfs-cache-max-size 100G \
--vfs-cache-max-age 100h \
--umask 002 \
--user-agent cartacherandom \
--rc \
--rc-user=cartache \
--rc-pass=Cartache1X \
--rc-web-gui \
--rc-addr 192.168.10.222:5580 \
--bwlimit-file 16M

