worked on createBackup function