copyright and added sync

This commit is contained in:
2023-11-18 09:15:17 -05:00
parent a42ee24aba
commit 6a7038b599
2 changed files with 12 additions and 1 deletions

11
sync_encode_sync Executable file
View File

@@ -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