Is there an easy php function to backup a database (or set of tables within a database) to another mysql installation or within the same database but to other tables?
            
        
            
3
	
        
            
        
    
- 
        Boy, would my life be easier if there was...Rijk– Rijk2011-09-04 16:36:39 +00:00Commented Sep 4, 2011 at 16:36
- 
        1You can call the "mysqldump" program from PHP. stackoverflow.com/questions/1867797/…Gus– Gus2011-09-04 16:45:52 +00:00Commented Sep 4, 2011 at 16:45
- 
        You can visit codecanyon.net and search for "Simple Backup" - you will find several Scripts that fit your needs.adilbo– adilbo2018-06-20 06:17:49 +00:00Commented Jun 20, 2018 at 6:17
                    
                        Add a comment
                    
                 | 
            
                
            
        
         
    2 Answers
You can try this
http://davidwalsh.name/backup-mysql-database-php
modify the code to back it up to other database.
