This commit is contained in:
Brian Zalewski 2023-07-31 05:33:06 +00:00
parent 9b371fd926
commit 3838ca1981

View file

@ -51,33 +51,32 @@ unset AWS_CA_BUNDLE
export PATH="$PATH:/usr/local/bin:/usr/bin" export PATH="$PATH:/usr/local/bin:/usr/bin"
# TODO: Only launch with --rc-web-gui if the servers hostname is the {{ .kubernetesHost }} # TODO: Only launch with --rc-web-gui if the servers hostname is the {{ .kubernetesHost }}
# TODO: Add more secure authentication method # TODO: Add more secure authentication method
sudo rclone --config="$CONFIG_FOLDER/rclone.conf" \ sudo rclone --config "$CONFIG_FOLDER/rclone.conf" \
mount \ mount \
--allow-other \ --allow-other \
--buffer-size 4G \ --buffer-size 4G \
--bwlimit=40M \ --bwlimit 40M \
--cache-chunk-path="$CACHE_FOLDER/$MOUNT-chunks" \ --cache-chunk-path "$CACHE_FOLDER/$MOUNT-chunks" \
--cache-db-path="$CACHE_FOLDER/$MOUNT-db" \ --cache-db-path "$CACHE_FOLDER/$MOUNT-db" \
--cache-dir="$CACHE_FOLDER/$MOUNT-vfs" \ --cache-dir "$CACHE_FOLDER/$MOUNT-vfs" \
--cache-info-age=60m \ --cache-info-age 60m \
--cache-tmp-upload-path="$CACHE_FOLDER/$MOUNT-upload" \ --cache-tmp-upload-path "$CACHE_FOLDER/$MOUNT-upload" \
--cache-workers=8 \ --cache-workers 8 \
--cache-writes \ --cache-writes \
--checkers=16 \ --checkers 16 \
--daemon \ --daemon \
--dir-cache-time 24h \ --dir-cache-time 24h \
--dir-cache-time=60m \ --dir-cache-time 60m \
--drive-use-trash \ --drive-use-trash \
--exclude-from="$RCLONE_IGNORE" \ --exclude-from "$RCLONE_IGNORE" \
--log-file="$LOG_FILE" \ --log-file "$LOG_FILE" \
--no-modtime \ --no-modtime \
--noapplexattr \ --noapplexattr \
--rc \ --rc \
--rc-pass rclone \ --rc-pass rclone \
--rc-user rclone \ --rc-user rclone \
--rc-web-gui \ --rc-web-gui \
--stats=0 \ --stats 0 \
--vfs-cache-max-age 1000h \
--vfs-cache-max-age 1000h \ --vfs-cache-max-age 1000h \
--vfs-cache-max-size 140G \ --vfs-cache-max-size 140G \
--vfs-cache-mode full \ --vfs-cache-mode full \