Сохранить рекурсивно содержимое директории:

tar -zcvf archive.tar.gz directory/

Переместить файл в открытый доступ для скачивания:

mv filename.tar.gz dir1/dir2

Экспортнуть всю mySQL-базу:

mysqldump dbname --triggers --routines --events --user=username --password=password > filename-db-date.sql
tar -zcvf filename-db-date.tar.gz filename-db-date.sql


This document has been copied from FAVOR.com.ua (https://favor.com.ua/en/blogs/30837.html).
All rights reserved by author of the material. In case of re-publication, the link to the source of the material is strongly required!
Document date: