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 / Deploy_on_cPanel.md
Last active April 22, 2024 18:16 — 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/
@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