Restic uses TBW on local drive

Hi,

I have weird problem. I have quite big backup 20TB and I’ve set backup from one NAS to another NAS (10Gbe to 10Gbe). Set cache folder (RESTIC_CACHE_DIR, cache is created where is it set) to be on destination NAS and after some time of making backup my local SSD have +20TBW.

I know I can set everything without using third machine, but is this a bug or is it normal? I’m asking, because after quite short time my SSD will be dead if I’ll make backups constantly :slight_smile:

You’ll want to set TMPDIR as well. Something like…

export TMPDIR=/Volumes/2TB_Data/tmp
export RESTIC_CACHE_DIR=/Volumes/2TB_Data/tmp/restic

Alternatively, if you have a ton of RAM, you could try a RAM drive…

2 Likes

Fantastic, Thank you!

1 Like

Only if the data is constantly changing. The TMPDIR is only filled with data files the will be uploaded.

I will say, my work computer, which I’ve only had two years now (SSD power on time of 5 months), has 338TB on a 2TB drive haha. My home computer, which I’ve had 8 years, only has 125TB written. I use my work machine to back up terabytes of data to a repository quite often. I don’t really care, cause it’s a work machine, and they’ll replace it when it dies. But I do think for my next machine, I’m going to max out the RAM, and always use a RAM drive for Restic haha