From 6a7038b5996f0e02fd052c1978b19d7e2c3bd00a Mon Sep 17 00:00:00 2001 From: Luke Tidd Date: Sat, 18 Nov 2023 09:15:17 -0500 Subject: [PATCH] copyright and added sync --- LICENSE | 2 +- sync_encode_sync | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 sync_encode_sync diff --git a/LICENSE b/LICENSE index ea890af..a7521e8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) . +Copyright (c) 2023 Luke Tidd. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/sync_encode_sync b/sync_encode_sync new file mode 100755 index 0000000..052a747 --- /dev/null +++ b/sync_encode_sync @@ -0,0 +1,11 @@ +#!/bin/bash + +cd /data/music/flac +rsync -a --progress * thrakkorzog:/home/luket/flac +ssh thrakkorzog 'cd /home/luket/git/library_works && ./encode_all' +if [[ "$?" == 0 ]]; then + rsync -a --progress thrakkorzog:/home/luket/opus/* /data/music/opus/ +else + printf 'Something went wrong in SSH\n' >&2 + exit 1 +fi