Thread: Updater
View Single Post
Steell
SourceMod Donor
Join Date: Mar 2009
Old 10-12-2011 , 15:16   Re: Updater
Reply With Quote #11

Quote:
Originally Posted by GoD-Tony View Post
I thought about this before but couldn't decide on a proper way to implement it.

How would you like the backups to work? Should all of the replaced files be grouped into the same folder, or should they keep their directory structure intact but move to /data/updater/backups?

The main problem I see with backups is that they're rendered useless if a plugin is updated twice within a close time-frame. Basically your backups would only be as good as the second newest version.
I was thinking just rename the file by appending -backupDDMMYYYY to the end of the filename (or something to that effect).
__________________
Steell is offline