So I have a strange question, but I'm working on a script to deploy a PHP codebase and want to see if something like this is possible:
I have a directory that Apache uses as a DocumentRoot:
We have a PHP app that must add several files and directories to this directory.
We are currently doing this by SCP'ing a tarfile and extracting it in /home/www. I'm looking to do this in a better way because when we are extracting the files, our PHP app gets some read permissions errors. I'd like to update these file atomically inside
/home/www (and preferably "at once")
Is there a way to do this without having to make a symlink to every file/directory that I'm extracting into the web directory?