Added snapshot support using either VSS (win xp/vista/7) or LVM (linux). Using the snapshot feature requires administrative/root privileges, and is toggled by the "snapshot-policy" option (by commandline or in advanced settings). Also improved the validation of options to not show incorrect warnings. This fixes issue #233. git-svn-id: https://duplicati.googlecode.com/svn/trunk@461 59da171f-624f-0410-aa54-27559c288bec
26 lines
834 B
C#
26 lines
834 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Duplicati.Library.Snapshots
|
|
{
|
|
/// <summary>
|
|
/// Simple helper to initialize and load a snapshot implementation for the current OS
|
|
/// </summary>
|
|
public static class SnapshotUtility
|
|
{
|
|
/// <summary>
|
|
/// Loads a snapshot implementation for the current OS
|
|
/// </summary>
|
|
/// <param name="folders">The list of folders to create snapshots of</param>
|
|
/// <returns>The ISnapshotService implementation</returns>
|
|
public static ISnapshotService CreateSnapshot(string[] folders)
|
|
{
|
|
if (Core.Utility.IsClientLinux)
|
|
return new LinuxSnapshot(folders);
|
|
else
|
|
return new WindowsSnapshot(folders);
|
|
}
|
|
}
|
|
}
|