/ Published in: Bash
How to run a tar archive backup excluding a directory. For example, running a website root directory backup excluding the 'backups' directory.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
tar cvf domain.com_YYYY_MM_DD_TTTT.tar * --exclude "backups"