wizard wrote: Wed Jan 29, 2025 4:49 pm...
2. Bigger issue, the program code uses this to find the backups:Code: Select all
ls *.BKP*
This normally returns only the files/directories containing ".BKP".
That doesn't work in BW64. In the image below, the first "ls" command shows all contents
of the directory. Next, you see that "ls *.BKP*" returns only "upper" and "work", so the program will
fail. Have no idea why this happens, perhaps @dimkr or one of our other experts can explain it.Thanks
wizard
This may work (avoiding output of the contents: "upper" and "work"):
ls --help wrote:-d, --directory list directories themselves, not their contents
ls -d *.BKP*/
But it adds a slash at the output, don't know if that gives an unwanted side-effect.
Without the appending slash: ls -d *.BKP*
it will show also any other file, e,g. *tar.gz or *tar.xz containing .BKP in the name , not sure if that's wanted in your setup .