saltstack/salt — pull request #3852 by christisking (2013-02-26 20:33:36+00:00)
Title: adding functionality to file.py to create a backup of a file before symlink deletes

added copy functions to file.py state for the symlink function. If the file or dir exists with same name as desired symlink, create a backup named file.salt.bak, then delete the file/dir and create the symlink.