I'm using rClone to mount a Wasabi S3 bucket to be used for offsite backups through Veeam. I'm using rclone mount to mount Wasabi for the Veeam repository. The disk I'm using for caching is 27TB and can expand if needed.
I'd like to always keep a full cache locally on the repository server and then upload any changes to Wasabi. Similar to how the Google Drive client would function, local changes are kept local and mirrored on the remote. This should keep Veeam fast since it won't have to download files from the cloud to read them.
The wasabi remote is mounted at: /data/wasabi/bucket/veeam-backups/repo
Below is my SystemD unit file
[Unit]
Description=Wasabi S3 (rclone)
AssertPathIsDirectory=/data/wasabi/bucket/veeam-backups/repo
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
--config /root/.config/rclone/rclone.conf \
--allow-other \
--cache-tmp-upload-path /data/wasabi/scratch/upload/veeam-backups \
--cache-dir /data/wasabi/scratch/cache/veeam-backups \
--cache-chunk-path /data/wasabi/scratch/chunks/veeam-backups \
--cache-db-path /data/wasabi/scratch/veeam-backups-cache-db \
--cache-workers 8 \
--vfs-cache-mode full \
--checkers 16 \
-vv \
wasabi:veeam-backups/repo /data/wasabi/bucket/veeam-backups/repo
ExecStop=/bin/fusermount -u /data/wasabi/bucket/veeam-backups/repo
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
I was wondering if I would be able to get the desired result though "--vfs-cache-max-age" or some other method?
Thanks in advance for looking at this.