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