preserve timestamp in transfer
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
rsync -a --progress --delete /data/music/flac/ thrakkorzog:/home/luket/flac
|
||||
rsync -az --progress --delete /data/music/flac/ thrakkorzog:/home/luket/flac
|
||||
ssh -tt thrakkorzog 'cd /home/luket/git/library_works && ./encode_all'
|
||||
if [[ "$?" == 0 ]]; then
|
||||
rsync -a --progress --delete thrakkorzog:/home/luket/opus/ /data/music/opus
|
||||
rsync -az --progress --delete thrakkorzog:/home/luket/opus/ /data/music/opus
|
||||
else
|
||||
printf 'Something went wrong in SSH\n' >&2
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user