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