Extracted the BackupTool class as a lib