From 396d50ee1be5ba0e7c22073f0a3ba3132bba504b Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 9 Jun 2020 12:35:21 +0200 Subject: [PATCH] Add new script to backup essentials to work homedir --- bin/backup-notes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/backup-notes diff --git a/bin/backup-notes b/bin/backup-notes new file mode 100755 index 0000000..3e1c023 --- /dev/null +++ b/bin/backup-notes @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ -d /mnt/timmej/home/Notizen ]]; then + rsync -av /home/jpt/Notizen /mnt/timmej/home/Notizen +else + echo "Mount /mnt/timmej/home/Notizen please!" + exit 1; +fi