From 3cef6f0b6d41ec55322ef4e0bb8377f7c5180655 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Tue, 24 Dec 2024 14:03:36 -0500 Subject: [PATCH 1/2] remove vfs cache from rclone --- internal/backend/mount/mount.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/backend/mount/mount.go b/internal/backend/mount/mount.go index 97ee21f..bc7e63a 100644 --- a/internal/backend/mount/mount.go +++ b/internal/backend/mount/mount.go @@ -54,7 +54,6 @@ func Mount(target *store.Target) (*AgentMount, error) { "--read-only", "--uid", "0", "--gid", "0", - "--vfs-cache-mode", "minimal", "--sftp-disable-hashcheck", "--sftp-idle-timeout", "0", "--sftp-key-file", privKeyFile, From b81fb99d704fbef9597c21d19ec6c32a7083334f Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Tue, 24 Dec 2024 14:17:35 -0500 Subject: [PATCH 2/2] ensure backup mutex fd is closed --- internal/backend/backup/jobrun.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/backend/backup/jobrun.go b/internal/backend/backup/jobrun.go index c8751ea..e4a326b 100644 --- a/internal/backend/backup/jobrun.go +++ b/internal/backend/backup/jobrun.go @@ -29,6 +29,7 @@ func RunBackup(job *store.Job, storeInstance *store.Store, waitChan chan struct{ backupMutex.Lock() defer backupMutex.Unlock() + defer backupMutex.Close() if storeInstance.APIToken == nil { return nil, fmt.Errorf("RunBackup: api token is required")