Support copy/copytruncate in rules