["${debug}" -eq "0"]&&printf'%b\n'"Create an archive for ${current_dir} files between ${date_start} and ${date_end} using XZ's compression level: ${xz_compression_lvl}."
## Get the list of files between the 2 dates and ignore tar files
find . -type f -newermt "${date_start}" -not -newermt "${date_end}" -not -iname "*.tar*" -print0 | tar cJf "${tar_file_name}" --null -T -
## Check previous return code and if the archive exists with size > 0
if["${?}" -eq "0"]&&[ -s "${tar_file_name}"];then
["${debug}" -eq "0"]&&printf'%b\n'"${tar_file_name} successfully created, the files can be deleted."