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
1 changed files with 12 additions and 1 deletions

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; }
}
}
}