cloudify-cosmo / repex

sed on steroids
Apache License 2.0
10 stars 3 forks source link

Create file backups when replacing #19

Open nir0s opened 8 years ago

nir0s commented 8 years ago

Currently, replaced files are not backed up, which can potentially screw things up when the user makes a mistake. There should be an optional flag (in the CLI and the API) to allow a user to backup the files to a temporary location.

The path to each backed up file should be constructed off of a temporary directory replacing base_directory + the relative path to the file.

The temporary directory should be named: {timestamp}-repex-tmp.