Пример #1
0
        private void CreateBackup()
        {
            var backupFileName      = GetBackupFileName();
            var destinationFilePath = System.IO.Path.Combine(BackupFolderPath, backupFileName);

            try
            {
                Backuper.CreateZipFolder(Path, destinationFilePath);
            }
            catch (Exception ex)
            {
                eventLog1.WriteEntry($"Backuper.CreateZipFolder-{ex.Message}", System.Diagnostics.EventLogEntryType.Error);
            }
        }