• 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


Leave a Reply

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