HP DP 6 not listing files on a linux box

if you have got the HP DP 6 already installed on client linux box and the files are not listing on your backup server this might be because you are using ext4 system which is not support by default on HP Data Protector 6.

identify if this is you problem by checking your file system

cat /etc/fstab

(This will give you a result if you are using ext4 filesystem)

then edit the following line in /opt/omni/lbin/.util

Row 351 add -t ext4 to it’s looks like the below.

/bin/df -P -t ext4 -t ext2 -t SFS -t ext -t minix -t xiafs -t reiserfs -t ext3 -t vfat -t vxfs -t xfs         2>/dev/null | sed ‘1d’ | awk ‘{print $6}’

There is no need to restart any services and you should be able to browse the files you would like to backup in your backup specification on your server.

How to remove recursively files in upload folder in Yii2


The below is example of function which can be used to recursively removed files in Yii2 using the command utility.

This function checks the modification date of files and removes files older than 30 days from @app/web/upload directory.

public function actionDeleteOldAttachments()
$cutOfdate = time() – 3600 * 24 * 30; // only 30 days to leave

$pathToFiles = Yii::getAlias(‘@app’).’/web/uploads/’;
$files = glob($pathToFiles.’*’);

foreach ($files as $file) {
$filesInsideDirectory = glob($file.’/*’);

foreach($filesInsideDirectory as $subfile){
if(filemtime($subfile) < $cutOfdate ){
echo “\n”.$subfile.filemtime($subfile);


//check modification date
if(filemtime($file) < $cutOfdate ){
echo “\n”.$file.filemtime($file);