Script Needed! Will pay

Gary P list at akwebhosting.net
Thu Feb 2 23:50:30 GMT 2006


Hello Everyone

 

I need to restore 1 server to another and need a script

 

Heres what I would like to do is restore a server from #1 to #2

 

* Rsync the following files and folders to server2 from server1 exactly where they are on server1 so /etc/file.conf on server1 goes to /etc/file.conf on server2

 

* They need to keep the same permissions and owner/group as well

 

* I was thinking the easiest would prob be rsync via ssh, and the easiest would be to put these into a conf file and have the main move file in a file I can sh or something



I need a script that will be 2 parts, one the main script and the other a list of files/folders that i can add/remove from in case i need to add stuff in the future...



 

Files

/etc/group

/etc/domainalias

/etc/domainips

/etc/localdomains

/etc/named.conf           

/etc/shadow               

/etc/passwd

/etc/proftpd.conf

/etc/pure-ftpd.conf

/etc/userdomains

/etc/quota.conf                                  

/usr/local/apache/conf/httpd.conf

 

Folders

/home

/var/named

/var/lib/mysql

/etc/proftpd

/etc/pure-ftpd

/etc/valiases    

/etc/vfilters     

/etc/ssl            

/var/cpanel       

/var/spool/cron   

/usr/share/ssl

/usr/local/cpanel/3rdparty/mailman/lists

/usr/local/cpanel/3rdparty/mailman/archives       

/usr/local/cpanel/base/frontend                   

/usr/local/frontpage

 

 

 

 

--------------------------------------------

Gary ::: gary at akwebhosting.net

AK Web Hosting Network

Phone: 866-467-8946 ::: Fax: 510-279-5802

AIM: LetflyAK ::: ICQ: 601006

 

URL's: http://www.akwebhosting.net ::: http://www.fastcolocation.net

 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list