Add folder copy functionality for rollback.