LASH is a session management system for GNU/Linux audio applications.
It allows you to save and restore audio sessions consisting of
multiple interconneced applications, restoring program state (ie
loaded patches) and the connections between them.

This requires jack-audio-connection-kit.
