From 61975d143dcd15571a1ce182ac3bf6bd98f068da Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 4 Dec 2014 23:20:29 +0000 Subject: [PATCH] added code for startup backups, Needs testing first! --- Saviour Backup System/setup.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Saviour Backup System/setup.cs b/Saviour Backup System/setup.cs index 21d0108..71b7759 100644 --- a/Saviour Backup System/setup.cs +++ b/Saviour Backup System/setup.cs @@ -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; } + } } }