Is there a good (launch at boot) solution for a RAMdisk on macOS to use for Duplicati?

I would like to speed up Duplicati (and above all make it wear my SSD out less) by letting it use a RAMdisk for scratch (on macOS). Has someone a reliable solution for this?