Skip to content

Two scripts to migrate site folder and mysql DB + mysql user creation over SSH (with KEYS)

Notifications You must be signed in to change notification settings

livilu/migrate-site-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

migrate app-mysql over SSH

Requirements:

  1. Copy public ssh key to remote server - ssh-copy-id
  2. install pv which is a pipe meter to provides some output during the transfer
  3. Edit /etc/sudoers and comment #Defaults requiretty - no security benefit

Scripts:

  1. migrate_folder.sh will migrate a local folder to a new remote location - folder will be created as well, recursive
  2. migrate_mysql.sh will migrate a local MySQL DB to a remote server. Script will handle the new MySQL user creation on remote side as well

About

Two scripts to migrate site folder and mysql DB + mysql user creation over SSH (with KEYS)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages