copyright and added sync

This commit is contained in:
LuKe Tidd 2023-11-18 09:15:17 -05:00
parent a42ee24aba
commit 6a7038b599
Signed by: luke
GPG Key ID: 75D6600BEF4E8E8F
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) <year> <owner>.
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:

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