⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
PT Commons
All Projects
PT Commons
Overview
Activity
Wiki
Download (318 Bytes)
Borg backups
» 76-borgbackupcheck.sh
Jamila Khan
, 05/11/2017 12:35 PM
#!/bin/sh
server
=
iz.mayfirst.org
scpuser
=
palantetech-sync
passphrase
=
PASSPHRASE
directory
=
"~/backups/borgbackups/bagel"
command
=
"export BORG_PASSPHRASE='
$passphrase
' && borg check -v
$directory
&& unset BORG_PASSPHRASE"
OUTPUT
=
$((
ssh
$scpuser
@
$server
"
$command
"
)
2
>&
1
)
if
[
$?
-
ne
0
]
then
warning
$OUTPUT
fi
« Previous
1
…
5
6
7
8
Next »
(7-7/8)
Loading...