Hi Folks,
I added bootswatch, made a weeks worth of modifications to the template.
It had 404 errors in it, I created a zip of the directory tree called bootswatch.zip
I deleted the layout, added it back and it deleted my backup file bootswatch.zip!
I verified this by creating a copy of the zip.
Lesson learned, do not name a backup you want to keep the same as the layout, or move it to another location.
Is this a bug? Does it need a write up?
-Rich
lmajano
November 11, 2014, 6:16pm
2
The remove layout from ContentBox, removes the entire directory. Was it inside?
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408
ColdBox Platform: http://www.coldbox.org
ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox
It removed the zip file I made to backup the changes I made in the layout directory. The zip was in /contentbox/layouts/
bdw429s
November 11, 2014, 7:22pm
4
Iām guessing the zip was overwritten when you reinstalled the layout. The ForgeBox service copies the zip into the target directory, unzips it, and then removes the zip. When it copied the new zip, it probably overwrote your backup one with the same name.
https://github.com/Ortus-Solutions/ContentBox/blob/master/modules/contentbox/model/updates/ForgeBox.cfc#L159
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Sounds right. I thought I had everything covered, then I got the lump in my throat ā¦
I was able to get a restore from the nightly backup!