-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrsync.sh
More file actions
executable file
·20 lines (19 loc) · 1 KB
/
rsync.sh
File metadata and controls
executable file
·20 lines (19 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -v
#export numdocs=/Users/phil/repos/numeric_docs
#export numlabs=/Users/phil/repos/numeric
rsync -avz _build/* piphome:/home/phil/public_html/numeric/.
# rsync -avz html_files/* piphome:/home/phil/public_html/numeric/.
#Rsync -avz pdf_files/* piphome:/home/phil/public_html/numeric/.
rsync -avz $numdocs/pdf_create/_build/*pdf $numdocs/pdf_files/.
rsync -avz $numdocs/pdf_files/* $numdocs/pdf_files/.
rsync -avz $numdocs/html_files/* $numdocs/html_files/.
cp $numdocs/labs/lab3/numeric_assignment3.pdf $numdocs/pdf_files/.
cp $numdocs/docs/miniproject1.pdf $numdocs/pdf_files/.
#
# now copy to server
#
rsync -avz $numdocs/pdf_create/_build/*pdf piphome:/home/phil/public_html/numeric/pdf_files/.
rsync -avz $numdocs/pdf_files/* piphome:/home/phil/public_html/numeric/pdf_files/.
rsync -avz $numdocs/html_files/* piphome:/home/phil/public_html/numeric/html_files/.
# ssh piphome 'chmod a+r /home/phil/public_html/numeric/pdf_files/*'
# ssh piphome -v 'ls -ldt /home/phil/public_html/numeric/pdf_files/* | head -30'