#!/bin/bash

CONFIG_FILE=/boot/config/rclone/rclone.conf
LOG_FILE=/mnt/user/logs/rclone/rclone-mount-keepass.log
CACHE_DRIVE=/mnt/disks/nvme/cache/rclone_keepass

umount /mnt/user/Cloud/keepass
umount -l /mnt/user/Cloud/keepass
fusermount -ux /mnt/user/Cloud/keepass


rclone mount keepass: /mnt/user/Cloud/keepass --config $CONFIG_FILE \
--allow-other \
--dir-cache-time 60s \
--poll-interval 5s \
--log-level DEBUG \
--umask 002 \
--user-agent cartacherandom \
--cache-dir=$CACHE_DRIVE \
--vfs-cache-mode full \
--log-file $LOG_FILE





#--syslog