fabric/patchwork — pull request #5 by objectified (2012-08-01 07:47:50+00:00)
Title: added basic file backup/rollback feature

I've added a module that implements basic functionality to backup/rollback a file. Basic operations:
- backup a file: creates a copy of a given file suffixed with a time pattern in the form of %d%m%y_%H%M%S, e.g. /path/to/foo.conf becomes /path/to/foo.conf-010812_094431 .
- find latest backup: finds latest backup of the given file on the filesystem
- rollback latest backup: overwrites the given file with its latest backup

I've supplied docstrings and used the run/sudo and verbose/quiet paradigms throughout the code.