I am new to Restic, coming from a rsync (with hardlinks to simulate snapshots) to a local SAN. I’m using Restic with B2 to store web and email data, currently full system backups. I might change to per-account Restic repos since deduplicaiton doesn’t seem to be a game changer–the first backup stored 61G in 53G. I think compression would be the way to go if it were possible, as I’ve seen good compression with disk-level compression with my other backups.
I have only tried Restic on one VPS with 4GB of RAM, which holds 1.6 million files. The large portion of that is in IMAP Maildir folders. Unfortunately, Restic did not succeed before I added a 4GB swap file. Watching the process in top shows the memory usage exceed 51% at its peak. ~4GB of memory for a backup process seems way too high to me. It appears the memory usage was the worst with the largest Maildir folders, as some contain over 100k files.
Can Restic be tweaked via CLI arguments to be more memory efficient, even if it increases the backup time some? I am concerned my dataset is a bad fit for Restic. Thanks for any help you can offer.