anchor.diff:      the_dir="$1"
       # Replace / with _
       out_base="${the_dir//\//_}"
  -    out_file="$backup_dir/$out_base-$date_stamp.tar.gz"
  +    out_file="$backup_dir/$out_base-$timestamp.tar.gz"
       /bin/tar --exclude-from <%= node[:localbackup][:ignore_file] %> -Pczf "$out_file" "$the_dir"
       rotate "$out_base"
   }
  
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 -%>
  
  