Yes, with some work done by you. Have a look at /etc/vzdump.conf , you can provide the parameter script: /path/to/you/script then, which handles this.
But be warned that maxfiles and remove aren't working anymore unless you take that into account in your script.