rclone: limit vfs cache size

This commit is contained in:
cy 2024-12-17 17:24:12 -05:00
parent bd6a84c0d6
commit e948100452
2 changed files with 2 additions and 2 deletions

0
hosts/chunk/-copilot.log Normal file
View file

View file

@ -12,7 +12,7 @@
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos"; ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos";
ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --transfers=32 --dir-cache-time 72h --poll-interval 0 --vfs-cache-mode writes photos: /mnt/photos "; ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
ExecStop = "/bin/fusermount -u /mnt/photos"; ExecStop = "/bin/fusermount -u /mnt/photos";
EnvironmentFile = config.sops.secrets."rclone/env".path; EnvironmentFile = config.sops.secrets."rclone/env".path;
}; };
@ -42,7 +42,7 @@
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
ExecStartPre = "/usr/bin/env mkdir -p /mnt/jellyfin"; ExecStartPre = "/usr/bin/env mkdir -p /mnt/jellyfin";
ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --allow-other --transfers=32 --vfs-cache-mode writes jellyfin: /mnt/jellyfin"; ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --allow-other --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G jellyfin: /mnt/jellyfin";
ExecStop = "/bin/fusermount -u /mnt/jellyfin"; ExecStop = "/bin/fusermount -u /mnt/jellyfin";
EnvironmentFile = config.sops.secrets."rclone/env".path; EnvironmentFile = config.sops.secrets."rclone/env".path;
}; };