TheChymera / mkstage4

Bash Utility for Creating Stage 4 Tarballs
GNU General Public License v3.0
104 stars 22 forks source link

Cannot exclude directories #40

Closed danipoak closed 4 years ago

danipoak commented 4 years ago

I've been using this script for several months now without hiccup. I'm not trying to add a couple of directories to the exclusion list but it's barking at me. mkstage4 -ps /externaldrive/Gentoo_Stage4_Backups/Stage4_${today} -e /usr/share/texmf-dist -e /usr/share/texmf-site and it spits back: tar: invalid option -- 'e' I've also tried spelling out explicitly: tar: unrecognized option '--exclude /usr/share/texmf-dist --exclude /usr/share/texmf-site' Based on the Readme though -e is a valid option.

TheChymera commented 4 years ago

@danipoak have you tried with just -s instead of -ps?

TheChymera commented 4 years ago

also, going by the usage instructions, the archive name should be at the very end of the command invocation.

danipoak commented 4 years ago

also, going by the usage instructions, the archive name should be at the very end of the command invocation.

This was the solution. Kind of a "doh" moment. Thanks!