#!/bin/bash

ip addr add 192.168.10.17/24 dev br0

CONFIG_FILE=/boot/config/rclone/rclone.conf
#LOG_FILE=/mnt/user/logs/rclone/rclone-mount-bdrive.log
CACHE_DRIVE=/mnt/disks/lonely_1/cache/rclone/rclone_zdrive
#--log-file $LOG_FILE \


rclone mount zdrive: /mnt/user/Cloud/zdrive --config $CONFIG_FILE \
--allow-other \
--dir-cache-time 5m \
--log-level INFO \
--umask 002 \
--user-agent cartacherandom \
--rc \
--rc-user=cartache \
--rc-pass=Cartache1X \
--rc-addr 192.168.10.17:5572 \
--rc-web-gui \
--cache-dir=$CACHE_DRIVE \
--vfs-cache-mode writes \
--vfs-cache-max-age 1500h \
--vfs-read-chunk-size 32M \
--bwlimit-file 5M \
--syslog

rclone mount zdrive: /mnt/user/Cloud/zdrive --config /boot/config/rclone/rclone.conf \
--allow-other \
--dir-cache-time 5m \
--log-level INFO \
--umask 002 \
--user-agent cartacherandom \
--rc \
--rc-user=cartache \
--rc-pass=Cartache1X \
--rc-addr 192.168.10.17:5572 \
--rc-web-gui \
--cache-dir=/mnt/disks/lonely_1/cache/rclone/rclone_zdrive \
--vfs-cache-mode writes \
--vfs-cache-max-age 1500h \
--vfs-read-chunk-size 32M \
--bwlimit-file 5M \
--syslog