fix backup function in the installation script