How to include .htaccess in tar commands? [closed]

The shell is expanding * to all files in the current directory that do not start with a dot. This is the same rule that ls uses by default (by convention, files whose names start with a dot are considered “hidden” in Unix). Try instead:

tar -pczf file.tar.gz .

Using . at the end will collect all files in the current directory, including those whose names start with a dot.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)