Auto-backup (hotcopy) with "overwrite" function
|Reported by:||radek||Owned by:||anybody|
I just setup Trac for one project and realized that trac-admin allows to backup the trac project environment using hotcopy command.
However, when I did that it says: Command failed: [Errno 17] File exists:
This behaviour is discussed in the ticket Trac-3198 with the suggestion: """ You're better off moving the previous hotcopy to a temp location, make a new hotcopy, then remove the temp location once the hotcopy has completed successfully. """
I propose to add this suggested functionality as a hack to the hotcopy command, so the command could be called:
trac-admin /trac hotcopy /trac-backup /tmp