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

PowerShell: Use WinSCP to Test a SFTP Connection

# testSftpConnect.ps1 # Quick script to test SFTP connectivity $username='FTPUSER' $password='PASSWORD' $sftpServer='x.x.x.x' $sftpPort=22 function testSftpConnect($sftpServer,$username,$password,$sftpPort){…

PowerShell: Use Chocolatey to Install Apps on Windows (Similar to Apt-Get or Yum)

Quick installation paste: # Install Chocolateyif (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12Set-ExecutionPolicy Bypass -Scope…

Kubernetes Container Deployment with NFS Persistent Volumes

Introduction: Update: we have provided a practical application of the knowledge conveyed in this article…
Other project: DragonCoin.com