2 * Copyright (C) 2007-2012 Argeo GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.server
.backup
;
18 import java
.text
.DateFormat
;
20 import org
.apache
.commons
.vfs
.FileSystemManager
;
21 import org
.apache
.commons
.vfs
.FileSystemOptions
;
23 /** Purges previous backups */
24 public interface BackupPurge
{
26 * Purge the backups identified by these arguments. Although these are the
27 * same fields as a {@link BackupContext} we don't pass it as argument since
28 * we want to use this interface to purge remote backups as well (that is,
29 * with a different base), or outside the scope of a running backup.
31 public void purge(FileSystemManager fileSystemManager
, String base
,
32 String name
, DateFormat dateFormat
, FileSystemOptions opts
);