From 44578ace80a974631b4becddba997affac625765 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 13 Aug 2016 00:14:29 +0200 Subject: borg-restore.pl: WIP Signed-off-by: Florian Pritz --- borg-restore.pl | 135 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 116 insertions(+), 19 deletions(-) (limited to 'borg-restore.pl') diff --git a/borg-restore.pl b/borg-restore.pl index 0a50578..95bb75d 100755 --- a/borg-restore.pl +++ b/borg-restore.pl @@ -10,20 +10,33 @@ borg-restore.pl - Restore paths from borg backups Script that helps to restore files from borg backups. -Takes one or more paths, looks for their backups, shows a list of distinct +Takes one path, looks for its backups, shows a list of distinct versions and allows to select one to be restored. +Also allows to specify a time for automatic selection of the backup that has to +be restored. If a time is specified, the script will automatically select the +newest backup that is at least as old as the time value that is passed. + +Backups are restored to their original destination if that destination does not +exist. If restoration should be attempted to an existing destination, the +destination has to be passed as an argument. + =cut =head1 SYNOPSIS -borg-restore.pl [options] +borg-restore.pl [options] [[