.
This commit is contained in:
commit
4603184052
87 changed files with 3677 additions and 0 deletions
9
files/.local/bin/mkbackup
Executable file
9
files/.local/bin/mkbackup
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if ! test "$(id -u)" = 0; then
|
||||
>&2 echo "mkbackup has to be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
borg create -e '*/.git/*' --verbose "backups@kentoj.de:$(hostname)::$(date -I)_$1" /etc /home /srv /var/ /usr
|
||||
Loading…
Add table
Add a link
Reference in a new issue