Update rclone settings

This commit is contained in:
2022-12-06 19:35:58 +00:00
parent 9fe3051c09
commit 40718b99c4

View File

@@ -48,11 +48,10 @@ in {
${pkgs.rclone}/bin/rclone --config="${rclone_config}" mount dungflix-vault: ${mountdir} \
--transfers 32 \
--vfs-cache-mode full \
--vfs-cache-max-age 168h \
--vfs-cache-max-age 336h \
--vfs-cache-max-size 200G \
--allow-other \
--no-modtime \
--buffer-size 4G \
--rc \
--rc-no-auth \
-vv
@@ -61,6 +60,10 @@ in {
sleep 5
${pkgs.rclone}/bin/rclone --config="${rclone_config}" rc vfs/refresh recursive=true _async=true
'';
postStop = ''
sleep 3
fusermount -u ${mountdir}
'';
serviceConfig = {
Restart = "on-failure";
};