~npisanti/npisantidotcomssg

npisantidotcomssg/fetch_data.sh -rwxr-xr-x 431 bytes
92157a2aNicola Pisanti corrects typo 2 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
echo "clearing destination folder..."
mkdir -p /home/$USER/htdocs/npisantidotcomssg/html_output/data
rm -rf /home/$USER/htdocs/npisantidotcomssg/html_output/data
echo "getting data..."
wget -r -m --no-parent -erobots=off --reject="index.html*" http://npisanti.com/data/
echo "moving data..."
mv npisanti.com/data/ /home/$USER/htdocs/npisantidotcomssg/html_output
echo "clearing..."
rm -rf npisanti.com
echo "done"
exit