Browse Source

Add 'sermon-upload.sh'

master
josh 2 years ago
parent
commit
b75802b8f4
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      sermon-upload.sh

+ 16
- 0
sermon-upload.sh View File

@@ -0,0 +1,16 @@
1
+cd 2017
2
+sermons=$(ls /mnt/52265C99265C8041/Users/Berean-Sound/sermons)
3
+IFS=$'\n'
4
+lastsermon=$(echo "${sermons[*]}" | sort -nr | head -n1)
5
+cp /mnt/52265C99265C8041/Users/Berean-Sound/sermons/$lastsermon .
6
+
7
+rsync --update --progress -e "ssh -i /home/berean/sermons/.tempssh/temp" *.mp3 sermons@bereanbibleutah.org:/home/josh/sermons/2017/
8
+
9
+sermons=$(ssh -i /home/berean/sermons/.tempssh/temp sermons@bereanbibleutah.org 'ls /home/josh/sermons/2017')
10
+IFS=$'\n'
11
+recentsermon=$(echo "${sermons[*]}" | sort -nr | head -n1)
12
+echo $recentsermon
13
+
14
+#cd ..
15
+#cd 2016
16
+#rsync --progress -e "ssh -i ../.tempssh/temp" *.mp3 sermons@bereanbibleutah.org:/home/josh/sermons/2016/

Loading…
Cancel
Save