I have to develop in a virtualized environment with my home directory on NFS, which also has a very aggressive backup policy that expodes if you use the filesystem for things like temporary compilation artifacts. Therefore I need to move some of the files currently written to ~/.CLion12 to somewhere not on a network mount. Unfortunately, the only other place I have to write files are ephemeral directories like /tmp.
Would it be safe to locate the entire ~/.CLion12/system directory on ephemeral storage that may be deleted when CLion isn't running?
If not, which subdirectories will work? I'm most interested in moving index, caches and cmake as they seem to have the most churn.
Also is there a setting to do this in CLion, or should I just sym-link those directories (and start CLion with a shell script that makes sure the directory exists before starting)?