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

index 30daa9635e47a6d9dde60529e5aa2df4ced01b73..d1fde086ff43ae1787b3103425746721acb39707 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ BUILDDIR=build
 PREFIX=usr
 BINDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/bin
 SHAREDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/share/doc/$(PACKAGE)
+MANDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/share/man
 
 .PHONY: all build package clean
 
@@ -49,6 +50,10 @@ $(SHAREDIR)/changelog.gz:
        mkdir --parents $(@D)
        gzip --stdout --no-name --best $(SRCDIR)/debian/changelog > $(@)
 
+$(MANDIR)/man1/backup.1.gz:
+       mkdir --parents $(@D)
+       gzip --stdout --no-name --best $(SRCDIR)/man/backup.1 > $(@)
+
 $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(BINDIR)/backup \
        $(BINDIR)/backupmount \
@@ -56,6 +61,7 @@ $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(SHAREDIR)/config-example.yaml \
        $(SHAREDIR)/copyright \
        $(SHAREDIR)/changelog.gz \
+       $(MANDIR)/man1/backup.1.gz \
        $(BUILDDIR)/$(PACKAGENAME)/DEBIAN/control
 
        mkdir --parents $(@D)
diff --git a/src/man/backup.1 b/src/man/backup.1
new file mode 100644 (file)
index 0000000..493a466
--- /dev/null
@@ -0,0 +1,8 @@
+.TH backup 1 2026-05-25
+
+.SH NAME
+backup - backup bash script
+
+.SH CONFIGURATION
+copy config-example.yaml from docs folder into folder it should run
+backup scripts. it must configurate pathes machines and so on.
\ No newline at end of file