preserve timestamp in transfer
This commit is contained in:
parent
e70dc21af5
commit
df0b43587b
10
fix_date_tag
Executable file
10
fix_date_tag
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
album_date="$(cut -d\ -f 1 <<< "${PWD/*\//}")"
|
||||
if [[ ! "$album_date" =~ [-0-9]+ ]]; then
|
||||
printf 'That date (%s) doesnt look right.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
for i in *.flac; do
|
||||
metaflac --remove-tag=DATE --set-tag=DATE="$album_date" "$i"
|
||||
done
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user