tar excluding directory


/ Published in: Bash
Save to your folder(s)

How to run a tar archive backup excluding a directory. For example, running a website root directory backup excluding the 'backups' directory.


Copy this code and paste it in your HTML
  1. tar cvf domain.com_YYYY_MM_DD_TTTT.tar * --exclude "backups"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.