added code for startup backups, Needs testing first!
This commit is contained in:
parent
4fece9fc11
commit
61975d143d
1 changed files with 12 additions and 1 deletions
|
@ -54,7 +54,18 @@ namespace Saviour_Backup_System
|
||||||
}
|
}
|
||||||
foreach (string id in drivesToBackup)
|
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; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue