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.
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
.