How to create a complete copy of the site files based on Magento 2, excluding temporary files?

Instruction:

1. Enter into SSH.

2. run command:

website dump:

tar -czvf ~/multi_dump.tar.gz --exclude=var/cache --exclude=var/session --exclude=var/log --exclude=var/tmp --exclude=var/export --exclude=var/report --exclude=var/backups --exclude='media/*import*' --exclude=media/tmp --exclude=media/downloadable --exclude=media/catalog . && echo OK