Mostly backup command in linux use tar command and if you want to backup directory… Read the postTar directory and exclude sub-directory