OpenPastebin

[ normal view ]

Syntax: bash

   #4725 Posted by Bassetts 2008-01-17 22:11:39
Formated by GeSHi
  1. #!/bin/bash
  2. suffix=$(date +%y%m%d)
  3. domains=( "domain.com" )
  4. cd /home/user/.snapshot/nightly.0/
  5. for domain in ${domains[@]}
  6. do
  7. tar -cf /home/user/backups/archives/${domain}.$suffix.tar ${domain}/
  8. done
Parsed in 0.00845313 seconds
Email this post Email  ::  Print Print   
:: Download   Download Text File4725.txt   Download Gziped text File4725.txt.gz   Download HTML File4725.html   Download PDF File4725.pdf
:: Print into    Print into HTML FileHTML document   Print into PDF FilePDF document