Added backup/restore functions

Added backup/restore functions limited, but a good basis for later on.