backup.sh

 

### backup.sh
###
###
### 1.  Make tarball
###
###    sh ./backup.sh
###
###  mtime value is number of days to backup
###
### 2. ftp 192.145.239.41
###
### 3. cd /public_html/p
###
### 4. put backup.tar.gz
###
### 5.  From browser, go to 
###
###     http://www.setgetweb.com/cpanel
###
###     Login/Password: setget5/M@daga3car
###
### 6. Go to Files | File Manager
###
### 6. Go to directory with tarball, then extract.

#=======================================================
#InMotion Hosting
#
#http://www.inmotionhosting.com
#http://www.inmotionhosting.com/support
#http://biz199.inmotionhosting.com/~setget5/
#
#Plan:                   Launch Plan
#Domain:                 setgetweb.com
#cPanel Username:        setget5
#Password:               M@daga3car
#Server:                 biz199
#Hostname:               biz199.inmotionhosting.com
#IP:                     192.145.239.41
#Temp URL:               http://biz199.inmotionhosting.com/~setget5
#Temp Control Panel:     http://biz199.inmotionhosting.com/cpanel
#Temp Webmail:           http://biz199.inmotionhosting.com/webmail
#Shared Secure Server:   https://secure199.inmotionhosting.com/~setget5
#Control Panel:          http://www.setgetweb.com/cpanel
#Webmail:                http://www.setgetweb.com/webmail
#Nameserver 1:           ns.inmotionhosting.com
#Nameserver 2:           ns2.inmotionhosting.com
#Nameserver 1 Ip:        74.124.210.242
#Nameserver 2 Ip:        70.39.150.2
#DNS Authority Key:      VDNYWTJqZn…ZiRWpoMzUz


find . -mtime -30 -name \*.html  | tar -T - -c -v -f backup.tar

gzip backup.tar




#for i in `echo c5 Liberty linux MobileFirst portal80 portal85 rpt8 rpt83 sencha WAS855 WAS85x`
#do
#   echo $i
#   rm $i.tar.gz
#
#   find $i -type f -print | \
#      grep -v ksearch | \
#      grep -v \.zip | \
#      grep -v .dll | \
#      grep -v .exe | \
#      grep -v \.tar | \
#      grep -v \.gz | \
#      tar -T - -c -v -f $i.tar
#   gzip $i.tar
#done