- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
you have already done your frist release today
Admin
I don't hate this. This is basically doing a retention policy on the number of backups they're keeping (except for when they're creating manual backups). It's probably not the most elegant way, but the code is pretty clear and easy to follow.
If they were to put a build number as part of the filename then they'd have to find another way of managing them to avoid keeping a backup of every single build.
Admin
The person that introduces a space in the backup directory path is in for a nice surprise.
Edit Admin
Or just add
h:m:s
to the timestamp in the file name.Edit Admin
As is, they're keeping 9 backups (potentially) for every day. So it doesn't really represent a meaningful retention policy, it just limits you to 3285 backups a year. Which sure, that should be enough for anybody, but honestly, if you're just having a script that deletes the backups from old days, your fine.
Actually, as I think about this more, if you're doing a release that crosses a day boundary (you hit deploy at 2359, for example), I suspect this will blow up in interesting ways if a rollback happens.
Admin
I always think that an exclamation mark on an error message is equivalent to adding "you idiot!" - as in "invalid entry!" - so having three here is like getting a punch in the face on top.
Edit Admin
Someone was missing VAX/VMS.
Admin
I wanted to comment, but I had to do it manually.
Admin
Ah, yeah. Forgot that they were using the date as part of the backup filename. In which case, I do now kind of hate it...
Edit Admin
Not as interesting as they would be if the value of date was recalculated in every test...