- Create MySQL dump, it will be created in the same folder where you execute the command TUTORIAL: https://www.siteground.com/kb/exportimport-mysql-database-via-ssh/
mysqldump -udemoent -p'crazy!password' demoent > backup_dario.sql
- compress all files and folders you need TUTORIAL: http://osxdaily.com/2012/04/05/create-tar-gzip/
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