I am trying to update a backup routine that was created by my predecessor. In a nutshell we've added a new directory to the backup list.
Very simple script, basically centered around:
exec ("tar czvf /os/vm/temp/$fname.tar.gz /os/vm/msg/* /os/vm/dat/*");
Very very simple, we just tarball a couple directories, they are generally around 2-3 MB total. Works perfectly fine.
However, as I said I need to add a third directory, so I changed it to this:
exec ("tar czvf /os/vm/temp/$fname.tar.gz /os/vm/msg/* /os/vm/tab/* /os/vm/dat/*");
The problem is that now all I get in my tarball is the "dat" and "tab" directories, "msg" just gets left out altogether. If I run it from the command line it's fine. I am guessing maybe it's a timeout issue or memory issue, though the "tab" directory is only like 400k in size.
In the php.ini safe_mode = OFF, max_execution_time = 30 seconds, and memory_limit = 16M (it's an embedded system and only has 16M RAM to work with)
I can't think of anything else that would cause this, thus my posting here. I am not sure what other information to provide as there's really not a lot to the action. I am not sure if this is a PHP issue or an O/S issue.
Any help is greatly appreciated!