Skip to content

Instantly share code, notes, and snippets.

View dusta's full-sized avatar
:octocat:
Visionary Programmer

Sławomir Kaleta dusta

:octocat:
Visionary Programmer
View GitHub Profile
@dusta
dusta / create-database.md
Last active February 21, 2024 10:47 — forked from NARKOZ/db_backup.sh
Cpanel db migration - Multiple export databases mysqldump - MySQL backup shell script

Old server

run this before multiple-import-mysql.sh

mysqldump -uroot -p --no-data --all-databases  > dump.sql 

New server

mysql -uroot -p > dump.sql 
@dusta
dusta / Deploy_on_cPanel.md
Last active September 9, 2024 04:27 — forked from oodavid/README.md
Deploy your site with git on cPanel

Deploy your site with git on cPanel

The most important: You must have shell access!

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
  • your (PHP) scripts are served from /var/www/html/