puppetlabs/puppet — pull request #1502 by dalen (2013-02-27 09:52:42+00:00)
Title: (#18110) Don't do recursive backup when not needed

First check if we are actually going to replace the directory before
starting to do a backup of it.