latest(repository_path)
Get latest archive in repository.
Arguments:
repository_path
: path of BorgBackup repository
archives(repository_path)
List BorgBackup archives.
Arguments:
repository_path
: path of BorgBackup repository
info(repository_path, archive="")
Get repository or archive information.
Arguments:
repository_path
: path of BorgBackup repositoryarchive
: name of archive
explore(repository_path, archive, inpath="")
List BorgBackup archive content.
Arguments:
repository_path
: path of BorgBackup repositoryarchive
: name of archiveinpath
: path of directory or file in the archive
extract(repository_path, archive, inpath, target, strip_components=0, test=False)
Extract file or directory from BorgBackup archive.
Arguments:
repository_path
: path of BorgBackup repositoryarchive
: name of archiveinpath
: path of directory or file in the archive to extracttarget
: destination of the extractstrip_components
: remove the specified number of leading path elements
restore_file(name, repository_path, archive, target_dir=None)
Restore file from BorgBackup archive.
If target_dir is not defined, the backup will be restored in original place.
Arguments:
name
: path of item in the archive to restorerepository_path
: path of BorgBackup repositoryarchive
: name of archivetarget_dir
: destination of the restoration, default is original path
restore_directory(name, repository_path, archive, target_dir=None, overwrite=False)
Restore from BorgBackup archive.
If target_dir is not defined, the backup will be restored in place.
Arguments:
name
: path of item in the archive to restorerepository_path
: path of BorgBackup repositoryarchive
: name of archivetarget_dir
: destination of the restoration, default is original pathoverwrite
: overwrite directory in target_dir