btmash

Back Up EOB Using HTTrack

May 25th, 2011
649
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. #Back up site
  4.  
  5. Year=`eval date +%Y`
  6. Month=`eval date +%m`
  7. Day=`eval date +%d`
  8. pathToCleanup="/path/to/cleanup.css"
  9. backupDirectoryPath="/path/to/archive-hub/archive-$Year-$Month-$Day"
  10. httrack "http://example.org/" -O "$backupDirectoryPath" "+*.example.org/*" "+http://s3.amazonaws.com/*" "-http://example.org/*/tags/*" -v
  11.  
  12. for i in "$backupDirectoryPath"/example.org/stylesheets/*.css; do cat "$pathToCleanup" >> "$i"; done
RAW Paste Data