summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-02-20 13:46:44 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-02-20 13:46:44 +0100
commit99d23eab17a28e16d9ec8fd7714d4639ba17a251 (patch)
tree2103668df963b07a9a4295f0c67f22d5d65eeb43
parent1ddfcade6ffb9417b222000a9ea682ac721a40ec (diff)
downloadbin-99d23eab17a28e16d9ec8fd7714d4639ba17a251.tar.gz
bin-99d23eab17a28e16d9ec8fd7714d4639ba17a251.tar.xz
borg-restore.pl: Move SYNOPSIS to the top
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xborg-restore.pl30
1 files changed, 17 insertions, 13 deletions
diff --git a/borg-restore.pl b/borg-restore.pl
index 622bec3..0798f32 100755
--- a/borg-restore.pl
+++ b/borg-restore.pl
@@ -6,6 +6,23 @@ use strict;
borg-restore.pl - Restore paths from borg backups
+=head1 SYNOPSIS
+
+borg-restore.pl [options] <path>
+
+ Options:
+ --help, -h short help message
+ --debug show debug messages
+ --update-cache, -u update cache files
+ --destination, -d <path> Restore backup to directory <path>
+ --time, -t <timespec> Automatically find newest backup that is at least
+ <time spec> old
+
+ Time spec:
+ Select the newest backup that is at least <time spec> old.
+ Format: <number><unit>
+ Units: s (seconds), min (minutes), h (hours), d (days), m (months = 31 days), y (year)
+
=head1 DESCRIPTION
borg-restore.pl helps to restore files from borg backups.
@@ -115,22 +132,9 @@ with --update-database.
{regex => "^/", replacement => "mnt/snapshots/root/"},
);
-=head1 SYNOPSIS
-borg-restore.pl [options] <path>
- Options:
- --help, -h short help message
- --debug show debug messages
- --update-cache, -u update cache files
- --destination, -d <path> Restore backup to directory <path>
- --time, -t <timespec> Automatically find newest backup that is at least
- <time spec> old
- Time spec:
- Select the newest backup that is at least <time spec> old.
- Format: <number><unit>
- Units: s (seconds), min (minutes), h (hours), d (days), m (months = 31 days), y (year)
=cut