When downloading exported marc records, creator card batches, creator label batches or report results, the resulting file names are not unique, and none of the names is terribly descriptive. I would suggest a library function that emits a filename formatted something like this ${description}-${date}.${extension} Where ${description} is exported marc => "koha_export.$START-$END" $START => first biblionumber in file $END => last biblionumber in file (range is omitted if there's only one bib) card batches => "creator_batch.$batchnumber" label batches => "label_batch.$batchnumber" report => "report.${report.id}.${sanitized_report_name}" ${sanitized_report_name} => shell friendly, i.e. s/[^A-Za-z0-9]+/_/g ${date} --iso-8601 formatted, shell friendly. ${extension} csv, pdf, marc, marcxml, etc.