How does that preserve it after the update? Or are you saying just to copy and paste it after the update?
P.S. I just got this error after the Octoprint Config Part One
"Command failed with return code 127: /bin/sh: 1: printer_on.sh: not found"
Not sure how to fix. The relay works on command line entries.