1
Fork 0

added code for startup backups, Needs testing first!

This commit is contained in:
Jake Howard 2014-12-04 23:20:29 +00:00
parent 4fece9fc11
commit 61975d143d

View file

@ -54,7 +54,18 @@ namespace Saviour_Backup_System
}
foreach (string id in drivesToBackup)
{
string directory = databaseTools.getBackupDirectory(id);
string name = databaseTools.getDriveName(id);
DriveInfo backupDrive;
foreach (DriveInfo drive in USBTools.getConnectedDrives())
{
if (drive.VolumeLabel == name)
{
CT.startCopy(drive, directory, true);
break;
}
else { continue; }
}
}
}