What hook-magic is needed, to make files be automatically copied to a webserver under certain conditions?