- 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