title: Modify Backup Script to Run 4x/week Instead of Daily
body: <p>I'm looking at modifying a backup script that has been setup for me on my server. The script currently runs each morning to backup all of my domains under the <code>/var/www/vhosts/</code> directory and I'd like to have it run only four times per week (Sun, Tue, Thu, Sat) instead of daily, if possible. I'm relatively new to the scripting language/commands and was wondering if someone might be able to help me with this? Here is the current script:</p>
  
  <pre>umask 0077
  
  BPATH="/disk2/backups/vhosts_backups/`date +%w`"
  LOG="backup.log"
  
  /bin/rm -rf $BPATH/*
  
  for i in `ls /var/www/vhosts` on 
  do
  tar czf $BPATH/$i.tgz -C /var/www/vhosts $i 2>>$BPATH/backup.log
  done</pre>
  
  <p>Thank you,<br>
  Jason</p>