Posted By

klovera on 01/14/12


Shell Bash tar linux

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


tar excluding directory

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

  1. tar cvf domain.com_YYYY_MM_DD_TTTT.tar * --exclude "backups"

Report this snippet  

You need to login to post a comment.