From 05707573cbf14c1c97ec093ac15d29dd88241a65 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Mon, 23 Dec 2019 10:18:54 +0100 Subject: [PATCH] Fix music pull script --- bin/fqdn | 3 +++ bin/music-pull-from-server | 2 +- bin/save-keepass | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 bin/fqdn create mode 100755 bin/save-keepass diff --git a/bin/fqdn b/bin/fqdn new file mode 100755 index 0000000..1e29bb1 --- /dev/null +++ b/bin/fqdn @@ -0,0 +1,3 @@ +#!/bin/bash +echo $1 +dig +short -x $1 | tr '[:upper:]' '[:lower:]' diff --git a/bin/music-pull-from-server b/bin/music-pull-from-server index e6f8a5d..cd28450 100755 --- a/bin/music-pull-from-server +++ b/bin/music-pull-from-server @@ -1,2 +1,2 @@ #!/bin/bash -rsync --recursive --times --update --delete-after --force --progress jpt@backup.jpt.lu:/home/jpt/Music/ /media/Daten/Media/Musik/ +rsync --recursive --times --update --delete-after --force --progress jpt@5.srv.jpt.lu:/home/jpt/Music/ /home/jpt/Music/ diff --git a/bin/save-keepass b/bin/save-keepass new file mode 100755 index 0000000..ffa3597 --- /dev/null +++ b/bin/save-keepass @@ -0,0 +1,4 @@ +#!/bin/sh + +cp -vf /home/jpt/Cloud/Privat/Keepass/MyDB.kdbx /run/media/jpt/JPT-SUBKEYS/Keepass/MyDB.kdbx +sync