A simple script with an interface for scene backup that runs through all the nodes in the project, unpacks the relative paths, replaces them with a new path, and copies what the path refers to specified folder, sorting it by content.
After that, replace everything with $HIP. Everything is extremely simple, but more than once saved life at work.
Works with all types of nodes. Last renders with mantra nodes will also be preserved.