tar - How to exclude a directory?

Ralf Mardorf silver.bullet at zoho.com
Wed Mar 22 12:53:30 UTC 2017


On Wed, 22 Mar 2017 13:45:38 +0100, Xen wrote:
>Ralf Mardorf schreef op 22-03-2017 13:22:
>
>> How could I use tar's "--exclude" option to exclude the
>> directory
>> /media/winos7/winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis  
>
>You can't prefix it with ./

Ok, should it work with "--exclude" ?

Should I use

winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis

or

/media/winos7/winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis

?






More information about the ubuntu-users mailing list