Skip to content

Instantly share code, notes, and snippets.

@trbsi
Last active November 15, 2016 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trbsi/648ef136bc2e3c734f47419f5fc1082a to your computer and use it in GitHub Desktop.
Save trbsi/648ef136bc2e3c734f47419f5fc1082a to your computer and use it in GitHub Desktop.

mysqldump -udemoent -p'crazy!password' demoent > backup_dario.sql

tar -cvzf backup.tar.gz public_html backup_dario.sql

  • Download from FTP and uncompress locally

tar -xf archive.tar -C /target/directory

You can also download using "scp" http://www.hypexr.org/linux_scp_help.php

if you have to move all files from subdirectory to root directory use something like this:

sudo mv live_to_local/my_folder_where_files_are/* live_to_local/

  • Import database on your laptop via mysql or phpmyadmin. If you import via mysql command you might get " 1449: The user (some_user@localhost) specified as a definer does not exist", just add new "some_user" inside phpmyadmin and it will work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment