add backup flag to skip backup in non-interactive mode