Implemented backup before update in the CLI script