- 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.
Logrotate is a system utility that manages the automatic rotation and compression of log files. If log files were not rotated, compressed, and periodically pruned, they could eventually consume all available disk space on a Read more…