Example #1
0
        public void JointCopyAlgorithm(Backup backup, bool isIncrement, string dirName)
        {
            long          pointSize = GetAddedPointSize(backup, isIncrement);
            DirectoryInfo dirInfo   = new DirectoryInfo(@"C:\SomeDir");

            dirInfo.CreateSubdirectory($@"{dirName}");
            var             fileinfo = new FileInfo($@"C:\SomeDir\{dirName}");
            List <FileInfo> archive  = new List <FileInfo>();

            archive.Add(fileinfo);
            backup.CreateRestorePoint(isIncrement, pointSize, archive);
        }
Example #2
0
        public void SplitCopyАlgorithm(Backup backup, bool isIncrement)
        {
            long pointSize = GetAddedPointSize(backup, isIncrement);

            backup.CreateRestorePoint(isIncrement, pointSize, backup.FileList);
        }