Implemented delete-all-but-n and delete-older-than. Implemented compacting. Added the --dry-run option, which currently works for deleting and compacting, but not restore or backup. Added output to console for use with dry-run, and added option to redirect this to the log for use in service mode.
31 lines
718 B
C#
31 lines
718 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Duplicati.Library.Main.ForestHash.Operation
|
|
{
|
|
internal class CleanupHandler : IDisposable
|
|
{
|
|
private string m_backendurl;
|
|
private FhOptions m_options;
|
|
private CommunicationStatistics m_stat;
|
|
|
|
public CleanupHandler(string backend, FhOptions options, CommunicationStatistics stat)
|
|
{
|
|
m_backendurl = backend;
|
|
m_options = options;
|
|
m_stat = stat;
|
|
}
|
|
|
|
public void Run()
|
|
{
|
|
throw new MissingMethodException();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|