Posted On March 31, 2019

Web Server Files and mySQL backup and restore

kimconnect 0 comments
blog.KimConnect.com >> Codes , Database >> Web Server Files and mySQL backup and restore
Backup:
mysqldump -u [username] -p [password] [databasename] > /home/shares/backup_db.sql
 
Restore:
mysql -u root -p sexcenter < /home/www/sexcenter/dump/g2_Entity_Original.sql
 
setup Cron Job:
# crontab -e
———-
@midnight /usr/bin/mysqldump –user=root –password=horse78 –all-databases > /home/alldatabases.sql

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Python Language Condensed

Strings # declare variable stringsomeString = "Hoy Matey"# Yank positional 1 to 3 within stringyank…

PowerShell: Perform Final Sync Between 2 Directories

Current Version # Final-Sync.ps1# This function performs CRC checks on each file at the source.#…

Random Notes about WSUS

#Install the PowerShell Windows Update module $checkModule=Get-Module -ListAvailable -Name PSWindowsUpdate if(!($checkModule)){ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #…