Many people store their configuration and their extensions/customizations in source code control and I would certainly recommend that as a best practice. Part of the restore procedure is to grab the configuration and extensions/customizations from source code and then re-apply them to the Alfresco and Share WARs.
If you don't use source code control at least back those files up like you would any other.