Ejemplo n.º 1
0
        public void restoreLast(String id)
        {
            String       lastBackup   = getLastBackupFull(id);
            BackupThread backupThread = new BackupThread(configs[id], "", dateFormat, controller);

            currentThread = new Thread(() => backupThread.restore(lastBackup));
            currentThread.Start();
        }
Ejemplo n.º 2
0
        public void restore(String id, String backupFolder)
        {
            Config       c            = configs[id];
            String       backupPath   = Path.Combine(c.destination, c.namedFolder ? c.name : "", backupFolder);
            BackupThread backupThread = new BackupThread(c, "", dateFormat, controller);

            currentThread = new Thread(() => backupThread.restore(backupPath));
            currentThread.Start();
        }