Added CLI backup command. Refactoring.