Skip to content

Instantly share code, notes, and snippets.

@jdbrice
Created July 7, 2015 23:10
Show Gist options
  • Select an option

  • Save jdbrice/751bd5c3f7cd384aed12 to your computer and use it in GitHub Desktop.

Select an option

Save jdbrice/751bd5c3f7cd384aed12 to your computer and use it in GitHub Desktop.
script to backup my rcf website
#!/bin/bash
# backup the website on the server
bnlMountHome
now=$(date +"%m_%d_%Y")
#/Users/danielbrandenburg/bnl/local/www/backup
tar -cvf "bnl_site_${now}.tar" /star/u/jdb/WWW/site
gzip -9 "bnl_site_${now}.tar"
mv "bnl_site_${now}.tar.gz" ../backup/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment