/ Published in: Bash
                    
                                        
Terms:
Site1 = http://site1.com/
Site2 = http://site2.com/
Site1Path = /home/user1045/domains/site1.com/html
Site2Path = /home/user9938/domains/site2.com/html
                Site1 = http://site1.com/
Site2 = http://site2.com/
Site1Path = /home/user1045/domains/site1.com/html
Site2Path = /home/user9938/domains/site2.com/html
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
STEPS:
1) ssh into site1
- ssh serveradmin@site1.com
- enter password
- “cd domains/site1.comâ€
- “tar czf filesbackup.tar.gz htmlâ€
- “mv filesbackup.tar.gz htmlâ€
2) ssh into site2 and download files from site1
- ssh serveradmin@site2.com
- enter password
- “cd domains/site2.comâ€
- “rm -r htmlâ€
- “wget http://site1.com/filesbackup.tar.gzâ€
- “tar xvfz filesbackup.tar.gzâ€
URL: http://thriveline.com/blog/2009/10/copying-a-sites-files-from-one-host-to-another/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                