Added the backup part

Rewrite the verify_repo function: now takes a directory as input