{"id":8461,"date":"2006-10-02T18:03:00","date_gmt":"2006-10-02T22:03:00","guid":{"rendered":"https:\/\/nuxx.net\/blog\/2006\/10\/02\/bsd-tar\/"},"modified":"2026-07-01T11:34:55","modified_gmt":"2026-07-01T15:34:55","slug":"bsd-tar","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2006\/10\/02\/bsd-tar\/","title":{"rendered":"bsd tar"},"content":{"rendered":"<p>Can any of you tell me why the following matches no files (and thusly won&#8217;t back things up?<\/p>\n<p><tt>tar -czP --include '*.sh' -f \/home\/telematic\/backup\/`date +\"%Y-%m-%d_scripts.tar.gz\"` \/usr\/local\/sbin<\/tt><\/p>\n<p>This is with BSD tar, and there are files matching *.sh under there. In fact:<\/p>\n<p><tt>root@rowla:~telematic\/backup# find \/usr\/local\/sbin -name \"*.sh\"<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-katester.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-c0nsumer.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-rekram.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-sithspawn.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-nuxxfriends.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-tnorman.sh<br \/>\n\/usr\/local\/sbin\/fastcgi\/fastcgi-secure.sh<br \/>\n\/usr\/local\/sbin\/automysqlbackup.sh<br \/>\n\/usr\/local\/sbin\/webalizer_daily.sh<br \/>\n\/usr\/local\/sbin\/dailybackup.sh<br \/>\n\/usr\/local\/sbin\/lighttpd-hash.sh<br \/>\nroot@rowla:~telematic\/backup#<\/tt><\/p>\n<p>So, uhm&#8230; What am I doing wrong?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Can any of you tell me why the following matches no files (and thusly won&#8217;t back things up? tar -czP &#8211;include &#8216;*.sh&#8217; -f \/home\/telematic\/backup\/`date +&#8221;%Y-%m-%d_scripts.tar.gz&#8221;` \/usr\/local\/sbin This is with BSD tar, and there are files matching *.sh under there. In fact: root@rowla:~telematic\/backup# find \/usr\/local\/sbin -name &#8220;*.sh&#8221; \/usr\/local\/sbin\/fastcgi\/fastcgi-katester.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-c0nsumer.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-rekram.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-sithspawn.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-nuxxfriends.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-tnorman.sh \/usr\/local\/sbin\/fastcgi\/fastcgi-secure.sh \/usr\/local\/sbin\/automysqlbackup.sh \/usr\/local\/sbin\/webalizer_daily.sh\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,34],"tags":[],"class_list":["post-8461","post","type-post","status-publish","format-standard","hentry","category-computers","category-moved-from-livejournal"],"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=8461"}],"version-history":[{"count":1,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8461\/revisions"}],"predecessor-version":[{"id":13168,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8461\/revisions\/13168"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=8461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=8461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=8461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}