Add script to copy media from input to transcode server
This commit is contained in:
parent
c07a5334d9
commit
30c87e7636
16
arch-config/scripts/in_path/sc-media-input
Normal file
16
arch-config/scripts/in_path/sc-media-input
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
user=exu
|
||||||
|
server=37.187.76.126
|
||||||
|
sshkeypath=$HOME/.ssh/id_ed25519
|
||||||
|
|
||||||
|
# unlock ssh key
|
||||||
|
if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
|
||||||
|
ssh-add -q "$sshkeypath"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# transfer from local storage to input
|
||||||
|
rsync -uvr --progress --bwlimit=2M "/mnt/storage/MediaLibrary/input/" ${user}@${server}:/mnt/Media/input/
|
||||||
|
|
||||||
|
echo "Finished transfering data"
|
Loading…
Reference in New Issue
Block a user