copyright and added sync
This commit is contained in:
parent
a42ee24aba
commit
6a7038b599
2
LICENSE
2
LICENSE
@ -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
11
sync_encode_sync
Executable 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
|
Loading…
x
Reference in New Issue
Block a user