Save and restore inventory