Tar exclude not working?

Posted by Andrew Fashion on Server Fault See other posts from Server Fault or by Andrew Fashion
Published on 2011-01-07T19:13:46Z Indexed on 2011/01/07 19:55 UTC
Read the original article Hit count: 361

Filed under:
|
tar -cvf file.tar --exclude=thumbs/ \
                  --exclude=uploads_event/ \
                  --exclude=uploads_forum/ \
                  --exclude=uploads_admin/ \
                  --exclude=uploads_userpoints/ \
                  --exclude=uploads_group/ \
                  --exclude=up_old/ \
                  --exclude=uploads_user/ \
                  --exclude=uploads_wall/ \
                  directory_to_tar/

Do I have it wrong? Trying to tar entire directory but exclude all those directories and any files in those folders completely.

© Server Fault or respective owner

Related posts about linux

Related posts about tar