• 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.

Leave a Reply