git-svn-id: https://duplicati.googlecode.com/svn/trunk@591 59da171f-624f-0410-aa54-27559c288bec
27 lines
963 B
C#
27 lines
963 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>
|
|
/// <param name="options">A set of commandline options</param>
|
|
/// <returns>The ISnapshotService implementation</returns>
|
|
public static ISnapshotService CreateSnapshot(string[] folders, Dictionary<string, string> options)
|
|
{
|
|
if (Utility.Utility.IsClientLinux)
|
|
return new LinuxSnapshot(folders, options);
|
|
else
|
|
return new WindowsSnapshot(folders, options);
|
|
}
|
|
}
|
|
}
|