-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload_tw.sh
23 lines (23 loc) · 968 Bytes
/
upload_tw.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
pushd output > /dev/null
echo "Start uploading ..."
#
#for alias "downloadtw" to work, add these to ~/.ssh/config
#=== ~/.ssh/config ===
#Host downloadtw
# HostName <hostname>
# Port <port>
# User <username>
#
scp -r * downloadtw:.
echo "Upload completed ..."
echo "Uploaded files list:"
find -type f -exec openssl md5 '{}' \;
popd > /dev/null
echo -e "\033[41m \033[0m"
echo -e "\033[41m \033[0m"
echo -e "\033[41m \033[0m"
echo -e "\033[33;41m Move files from home dir to /data/www/ \033[0m"
echo -e "\033[41m \033[0m"
echo -e "\033[41m \033[0m"
echo -e "\033[41m \033[0m"