• Using tar command is fast and effective.
  • You have to exclude dynamic data
    • tar –exclude=’./var’ –exclude=’./pub/media/catalog’ –exclude=’./pub/media/productattach’ –exclude=’./download’ –exclude=’./generated’ -cvzf my.tar.gz ./*
  • When apply the above command you have to care about the order of options. –exclude must be place at the beginning.

Categories: Linux & Unix

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *