anchor.diff:  
   cd /tmp
   umask 0077
  -date_stamp=$(date +%Y%m%d%H%M%S)
  +timestamp=$(date +%Y%m%d%H%M%S)
   
   # Remove old versions
   rotate() {
  
positive.code: # Make backup of PostgreSQL
  echo Backing up PostgreSQL...
  su postgres -c "/usr/bin/pg_dumpall -cO" |
      gzip > "$backup_dir/postgresql-$date_stamp.sql.gz"
  rotate postgresql
  <% end -%>
  
  
negative.code: # Make backup of MySQL
  echo Backing up MySQL...
  /usr/bin/mysqldump -u<%= node[:localbackup][:mysql][:user] %> -p<%= node[:localbackup][:mysql][:password] %> --all-databases \
      | gzip > "$backup_dir/mysql-$timestamp.sql.gz"
  rotate mysql
  <% end -%>
  
  