public void Restore(Schedule schedule, DateTime when, string where) { ExecuteTask(new RestoreTask(schedule, where, when)); }
public string[] ListBackups(Schedule schedule) { ListBackupsTask task = new ListBackupsTask(schedule); ExecuteTask(task); return task.Backups; }
public List<KeyValuePair<Library.Main.RSync.RSyncDir.PatchFileType, string>> ListActualFiles(Schedule schedule, DateTime when) { ListActualFilesTask task = new ListActualFilesTask(schedule, when); ExecuteTask(task); if (task.IsAborted) return null; if (task.Result.StartsWith("Error:")) throw new Exception(task.Result); return task.Files; }
public string[] ListBackups(Schedule schedule) { ListBackupsTask task = new ListBackupsTask(schedule); ExecuteTask(task); if (task.IsAborted) return null; return task.Backups; }
void SelectBackup_PageLeave(object sender, PageChangedArgs args) { if (args.Direction == PageChangedDirection.Back) return; if ((RestoreExisting.Checked && BackupList.SelectedBackup == null) || (!RestoreExisting.Checked && !DirectRestore.Checked)) { MessageBox.Show(this, Strings.SelectBackup.NoActionSelected, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); args.Cancel = true; return; } if (DirectRestore.Checked) { m_wrapper.SetupDefaults(); m_wrapper.DataConnection = new System.Data.LightDatamodel.DataFetcherNested(Program.DataConnection); Schedule s = new Schedule(); Task t = new Task(); m_wrapper.DataConnection.Add(s); m_wrapper.DataConnection.Add(t); s.Task = t; m_wrapper.ScheduleID = s.ID; m_wrapper.PrimayAction = WizardSettingsWrapper.MainAction.Restore; } else m_wrapper.ReflectSchedule(BackupList.SelectedBackup); switch (m_wrapper.PrimayAction) { case WizardSettingsWrapper.MainAction.Edit: args.NextPage = new Add_backup.SelectName(); break; case WizardSettingsWrapper.MainAction.Remove: args.NextPage = new Delete_backup.DeleteFinished(); break; case WizardSettingsWrapper.MainAction.Restore: m_wrapper.ShowAdvancedRestoreOptions = ShowAdvanced.Checked; if (DirectRestore.Checked) args.NextPage = new Add_backup.PasswordSettings(); else args.NextPage = m_wrapper.ShowAdvancedRestoreOptions ? (IWizardControl)new Add_backup.SettingOverrides() : (IWizardControl)new Restore.SelectBackupVersion(); break; case WizardSettingsWrapper.MainAction.RunNow: args.NextPage = new RunNow.RunNowFinished(); break; default: args.NextPage = null; args.Cancel = true; return; } }
public void FullBackup(Schedule schedule) { PerformBackup(schedule, true, null); }
public BackupTask(Schedule schedule) { m_schedule = schedule; }
public RemoveOlderThanTask(Schedule schedule, string older) : base(schedule) { m_older = older; base.TaskCompleted += new TaskCompletedHandler(DoneEvent); }
public RestoreTask(Schedule schedule, string targetdir) : this(schedule, targetdir, null, new DateTime()) { }
public RestoreTask(Schedule schedule, string targetdir, string sourcefiles, DateTime when) : base(schedule) { m_targetdir = targetdir; m_sourceFiles = sourcefiles; m_when = when; base.TaskCompleted += new TaskCompletedHandler(DoneEvent); }
public RestoreTask(Schedule schedule, string targetdir, DateTime when) : this(schedule, targetdir, null, when) { }
public RestoreTask(Schedule schedule, string targetdir, string sourcefiles) : this(schedule, targetdir, sourcefiles, new DateTime()) { }
public void LoadFileList(Schedule schedule, DateTime when, List<string> filelist, List<string> targetFolders, string defaultTarget) { //backgroundWorker.CancelAsync(); LoadingIndicator.Visible = true; progressBar.Visible = true; treeView.Visible = false; treeView.TreeViewNodeSorter = new NodeSorter(); LoadingIndicator.Text = m_localizedLoadingText; m_files = filelist; m_when = when; m_schedule = schedule; m_defaultTarget = defaultTarget; m_targetfolders = targetFolders; m_rootnodes = null; if (!backgroundWorker.IsBusy) backgroundWorker.RunWorkerAsync(); }
public ListSourceFoldersTask(Schedule schedule, DateTime when) : base(schedule, when) { }
public FullBackupTask(Schedule schedule) : base(schedule) { }
public RemoveAllButNFullTask(Schedule schedule, int fullcount) : base(schedule) { m_fullCount = fullcount; base.TaskCompleted += new TaskCompletedHandler(DoneEvent); }
protected FullOrIncrementalTask(Schedule schedule) : base(schedule) { base.TaskCompleted += new TaskCompletedHandler(DoneEvent); }
public RestoreSetupTask(Schedule schedule, string targetdir) : base(schedule) { m_targetdir = targetdir; }
public IncrementalBackupTask(Schedule schedule, string fullAfter) : this(schedule) { m_fullAfter = fullAfter; }
public void Setup(Schedule schedule) { m_schedule = schedule; backupItems.Setup(schedule); }
public IncrementalBackupTask(Schedule schedule) : base(schedule) { }
public void IncrementalBackup(Schedule schedule) { PerformBackup(schedule, false, null); }
public ListBackupEntriesTask(Schedule schedule) : base(schedule) { }
public List<ManifestEntry> ListBackupEntries(Schedule schedule) { ListBackupEntriesTask task = new ListBackupEntriesTask(schedule); ExecuteTask(task); if (task.IsAborted) return null; if (task.Result.StartsWith("Error:")) throw new Exception(task.Result); return task.Backups; }
public ListBackupsTask(Schedule schedule) : base(schedule) { this.TaskCompleted += new TaskCompletedHandler(ListBackupsTask_TaskCompleted); }
public IList<string> ListSourceFolders(Schedule schedule, DateTime when) { ListSourceFoldersTask task = new ListSourceFoldersTask(schedule, when); ExecuteTask(task); if (task.IsAborted) return null; if (task.Result.StartsWith("Error:")) throw new Exception(task.Result); return task.Files; }
public ListFilesTask(Schedule schedule, DateTime when) : base(schedule) { m_when = when; }
private void PerformBackup(Schedule schedule, bool forceFull, string fullAfter) { if (forceFull) ExecuteTask(new FullBackupTask(schedule)); else ExecuteTask(new IncrementalBackupTask(schedule, fullAfter)); }
public void Setup(Schedule schedule) { m_schedule = schedule; WaitPanel.Visible = true; WaitPanel.Dock = DockStyle.None; statusLabel.TextAlign = ContentAlignment.MiddleCenter; progressBar.Visible = true; listView.Visible = false; backgroundWorker.RunWorkerAsync(schedule); }