public Backup getBackupData ( ) throws Exception { Backup backupData = new Backup ( ) ; backupData . setGroups ( getGroups ( ) ) ; backupData . setProfiles ( getProfiles ( ) ) ; ArrayList < Script > scripts = new ArrayList < Script > ( ) ; Collections . addAll ( scripts , ScriptService . getInstance ( ) . getScripts ( ) ) ; backupData . setScripts ( scripts ) ; return backupData ; }
Return the structured backup data