]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add restore man page
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 13:44:50 +0000 (15:44 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 13:46:25 +0000 (15:46 +0200)
Makefile
src/man/restore.1 [new file with mode: 0644]
src/restore

index 5241247bb0fb1f0224e1202ed11159b93dfba4b0..7e84d76e19e45c5b9605aaf4ceae629ba500a278 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,10 @@ $(MANDIR)/man1/backupmount.1.gz:
        mkdir --parents $(@D)
        gzip --stdout --no-name --best $(SRCDIR)/man/backupmount.1 > $(@)
 
+$(MANDIR)/man1/restore.1.gz:
+       mkdir --parents $(@D)
+       gzip --stdout --no-name --best $(SRCDIR)/man/restore.1 > $(@)
+
 $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(BINDIR)/backup \
        $(BINDIR)/backupmount \
@@ -67,6 +71,7 @@ $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(SHAREDIR)/changelog.gz \
        $(MANDIR)/man1/backup.1.gz \
        $(MANDIR)/man1/backupmount.1.gz \
+       $(MANDIR)/man1/restore.1.gz \
        $(BUILDDIR)/$(PACKAGENAME)/DEBIAN/control
 
        mkdir --parents $(@D)
diff --git a/src/man/restore.1 b/src/man/restore.1
new file mode 100644 (file)
index 0000000..7a402b9
--- /dev/null
@@ -0,0 +1,19 @@
+.TH restore 1 2026-05-25
+
+.SH NAME
+restore - is a bash script to restore files or directories from backup.
+
+.SH SYNOPSIS
+restore -d <date> -n <number> -r <host> -p <path> [-o -h]
+
+.SH OPTIONS
+.P
+.EX
+-d <date>     date from backup
+-n <number>   number of backup
+-r <host>     host must ssh conform <user>@<machine>:<port>
+-p <path>     path to restore on destination
+-o            origin deletion mode - deletes files on destination
+-h            show help
+.EE
+.P
\ No newline at end of file
index 2020d40edd3702e853ddde15d3b3ed1836248756..c411919c42fa68d7e6b981f2da0efcd9c8cc6cb8 100755 (executable)
@@ -12,7 +12,7 @@ errlog()
 
 useage()
 {
-       echo "$0 -d <date> -n <number> -r <host> -p <path> -k <key> -o"
+       echo "$0 -d <date> -n <number> -r <host> -p <path> -o"
        echo
        echo " -d    date from backup"
        echo " -n    number of backup"