User Tools

Site Tools


wiki:mysqlbackuprestore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:mysqlbackuprestore [2024/06/13 20:42] guidebeaconwiki:mysqlbackuprestore [2024/06/13 20:46] (current) guidebeacon
Line 13: Line 13:
 To restore a local copy, make a copy of the backup zip: To restore a local copy, make a copy of the backup zip:
  
-''cp /backup/mysql/all_dbs.zip /tmp/''+<code> 
 +cp /backup/mysql/all_dbs.zip /tmp/ 
 +</code>
  
 Decompress the zip: Decompress the zip:
  
-''cd /tmp'' +<code> 
- +cd /tmp 
-''unzip all_dbs.zip''+unzip all_dbs.zip 
 +</code>
  
 Then run this command to perform the restore from the shell or SSH. Then run this command to perform the restore from the shell or SSH.
  
-''mysql -u root beaconte_beacontech < beaconte_beacontech.sql''+<code> 
 +mysql -u root beaconte_beacontech < beaconte_beacontech.sql 
 +</code>
  
 If restoring a different database, change the database name and file parameter. If restoring a different database, change the database name and file parameter.
  
 The file must be in its raw form and not compressed or it won't work. The file must be in its raw form and not compressed or it won't work.
wiki/mysqlbackuprestore.1718311320.txt.gz · Last modified: 2024/06/13 20:42 by guidebeacon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki