Compare commits

..

No commits in common. "2b36d7c555cd72fcf664a1c4f59d1ecebb9f3e11" and "b34416de141e729aaa968e42e84217001741b524" have entirely different histories.

6 changed files with 0 additions and 40 deletions

View File

@ -1 +0,0 @@
CONTABO_BACKUP_PATH="/home/bruno/Backups/Contabo"

1
Services/backup-contabo.service Normal file → Executable file
View File

@ -3,4 +3,3 @@ Description=Backup contabo daily
[Service]
ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh
EnvironmentFile=/home/bruno/Apps/linuxShortcuts/Services/backup-contabo.env

View File

@ -1,10 +1,4 @@
#! /bin/bash
if [[ `nmcli -t -f GENERAL.METERED dev show | grep "METERED:yes"` ]]; then
echo Backup does not work on metered connections
exit 1
fi
if [[ -z $CONTABO_BACKUP_PATH ]]; then
echo CONTABO_BACKUP_PATH environment not set
exit 1

View File

@ -1,6 +0,0 @@
[Unit]
Description=Backup joplin weekly
[Service]
User=bruno
ExecStart=/home/bruno/Apps/linuxShortcuts/Services/backup-joplin.sh

View File

@ -1,15 +0,0 @@
#!/bin/bash
BACKUP_DIR="/home/bruno/Backups/Joplin"
JOPLIN_BIN="/bin/joplin"
$JOPLIN_BIN sync
$JOPLIN_BIN e2ee decrypt
# Delete old backups
cd "$BACKUP_DIR"
rm -r "./joplin.jex"
rm -rf "./MD"
$JOPLIN_BIN --log-level debug export --format jex "$BACKUP_DIR/joplin.jex"
$JOPLIN_BIN --log-level debug export --format md "$BACKUP_DIR/MD"

View File

@ -1,11 +0,0 @@
[Unit]
Description=Backup joplin weekly
[Timer]
Persistent=true
OnCalendar=Thu *-*-* 10:10:00
WakeSystem=true
#DayOfWeek Year-Month-Day Hour:Minute:Second
[Install]
WantedBy=timers.target