<?php
function getFilename_out( $buid, bool $bu_test, bool $isErr=false ){
return getFilename_tmp( $buid, $bu_test?'t':'n', $isErr? 'err': 'op' );
}
/**
* Create an output file for the backup (forked) process to use. These are essentually
* temporary files which may be deleted after the back process completes.
*
* buid: backup record id
*
* fn_type:
* t: for test files
* n: for non-test files
* x: for file exclusion list
*
* fn_stream:
* op: output stream
* err: error stream
*/
function getFilename_tmp( $buid, $fn_type='t', $fn_stream='op' ){
return "bu-$fn_type-$fn_stream-$buid.txt";
}
?>