Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Back up site
- Year=`eval date +%Y`
- Month=`eval date +%m`
- Day=`eval date +%d`
- pathToCleanup="/path/to/cleanup.css"
- backupDirectoryPath="/path/to/archive-hub/archive-$Year-$Month-$Day"
- httrack "http://example.org/" -O "$backupDirectoryPath" "+*.example.org/*" "+http://s3.amazonaws.com/*" "-http://example.org/*/tags/*" -v
- for i in "$backupDirectoryPath"/example.org/stylesheets/*.css; do cat "$pathToCleanup" >> "$i"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement