#!/bin/bash # # ./fahback is for backing up FAH installation. # To get to know more about FAH go to http://folding.stanford.edu. # # Primary reason of this is to help catch "BADWU1" type of WUs. # "BADWU1" type WUs are these Gromacs WUs what will freeze/lockup the AMD CPUs when SSE is enabled. # For more information: # http://forum.folding-community.org/viewtopic.php?t=4444 # # To get periodic backups (30min): # Run "crontab -e", type "i" and add this line: # */30 * * * * /home/ivo/public_html/fahback # Then press [esc] and ":x". # Fpath="/home/ivo/foldingathome" FAH="/home/ivo/public_html" if [ -r ${FAH}/fah_back1.tgz ]; then if [ -r ${FAH}/fah_back2.tgz ]; then rm -f ${FAH}/fah_back2.tgz fi mv ${FAH}/fah_back1.tgz ${FAH}/fah_back2.tgz fi tar czf ${FAH}/fah_back1.tgz ${Fpath}