For some reason, whether it be a recent upgrade or something else, all of my custom templates were completely overwritten on two of my sites, replaced by WSN default templates. Although I had backups, there had been changes after I took the backups, so whatever happened cost me a days work. I am now incredibly worried this could happen again, I cant afford that to happen.
Can we have some way of backing up our templates within WSN, like clone but just the templates. Perhaps even taking a backup automatically before an upgrade.
This template reversion problem has happened on several sites recently during updates. I've not yet been able to reproduce how it happens but I added some code to upgrade.php that should stop the only way I could guess it would happen. I also added an automatic backup of each template set to a 'hide' version in the templates directory upon upgrade, I'm just going to leave that in there until I'm sure that the template reversion problem has been solved.
There is the rollbacks option, but that rolls back the entire site including database and files to the previous version, like a clone.
The theme packager would be the best way to manually backup templates, because it'll allow you to restore them to a later version without having most of your templates suddenly marked as customized causing you more work down the road.
I'll look into changing the current backups page to include a theme backup along with the database backup -- that way you'd be able to generate a series of automated backups. That'll have to wait for the 8.0 series though most likely.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Backup templates
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Posted Feb 26, 2013 - 9:43 AM:
For some reason, whether it be a recent upgrade or something else, all of my custom templates were completely overwritten on two of my sites, replaced by WSN default templates. Although I had backups, there had been changes after I took the backups, so whatever happened cost me a days work. I am now incredibly worried this could happen again, I cant afford that to happen.
Can we have some way of backing up our templates within WSN, like clone but just the templates. Perhaps even taking a backup automatically before an upgrade.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This template reversion problem has happened on several sites recently during updates. I've not yet been able to reproduce how it happens but I added some code to upgrade.php that should stop the only way I could guess it would happen. I also added an automatic backup of each template set to a 'hide' version in the templates directory upon upgrade, I'm just going to leave that in there until I'm sure that the template reversion problem has been solved.
There is the rollbacks option, but that rolls back the entire site including database and files to the previous version, like a clone.
The theme packager would be the best way to manually backup templates, because it'll allow you to restore them to a later version without having most of your templates suddenly marked as customized causing you more work down the road.
I'll look into changing the current backups page to include a theme backup along with the database backup -- that way you'd be able to generate a series of automated backups. That'll have to wait for the 8.0 series though most likely.