Neurotic Fishbowl: Automatically Back-up MT Templates

« Items in The Gold Box | Main Index | Hot Dog »
comments | incoming pings | outgoing pings



strtotime ("August 2, 2002 12:44 PM")) { ?>

Automatically Back-up MT Templates

I was reading PromoGuy's list of handy little MT tweaks and loved The Girlie Matters's tip to back-up MT templates with "link this template" feature in four easy steps.

1. In each of blog directories, create a folder called "templates" and set the permissions to 777.
2. Pulled up each template for editing and assign a linked file to each one. Example: for Main Index Template link to a file called "templates/mainindex.tmpl".
3. Saved the template, which generates the necessary back-up file in the templates folder.
4. Download all the template directories to your local drive so you have a copy if something happens to your site.

As easy as pie and saves all the trouble of copying and pasting each template to a text file, which is what I had been doing. Since I currently have nine different skins and some of them have different templates from others, that could take a while to do. Kudos on a quick and easy way to do back-ups.

.: Posted August 2, 2002 12:44 PM in Geeky Things, ";print substr($entry_cats, 0, -2); ?> :.


"; echo "Trackbacks on this post: ", $count, ""; $pingarray = "SELECT p.tbping_source_url, p.tbping_blog_name, p.tbping_created_on, p.tbping_excerpt, p.tbping_tb_id, t.trackback_id, t.trackback_entry_id FROM mt_tbping p, mt_trackback t WHERE (p.tbping_blog_id = $blogid) and (t.trackback_entry_id = $entry_id) and (t.trackback_id = p.tbping_tb_id)"; $resultping = mysql_query($pingarray) or die (mysql_error()); while ($row = mysql_fetch_array($resultping)) { //set up the variables being used - the date can be configured below $url = ($row['tbping_source_url']); $blog = ($row['tbping_blog_name']); $date = date("F d, Y g:i A", strtotime($row['tbping_created_on'])); $excerpt = ($row['tbping_excerpt']); echo "

", $excerpt, "

"; echo "
Posted by "; echo "", $blog, ""; echo " on ", $date, "
"; } ?>

Ping this post
http://www.neuroticfishbowl.com/mt/mt-tb.cgi/139




"..."




Comments

*blink blink*

You can also save them in one single folder outside your servers WWW scope, if you have FTP access. Then you can download the entire folder instead. Well, I suppose you'd have to make sub folders to accomodate for all your skins, though.

.: Torgny said on August 2, 2002 02:30 PM :: link it :.

You're too early! Come back at August 2, 2002 12:44 PM to see this post.

Post a comment*:
{HTML ok, IP address logged}

Name:


E-mail Address: (Optional)


URL: (Optional)


Add a smilie (launches smilie 'palette')

Comments:


Remember info?





Subscribe to post
Unsubscribe to post
(e-mail field must be filled in)
Enter e-mail address to subscribe/unsubscribe to comments on this post without having to post a comment:
Subscribe to post
Unsubscribe to post
E-mail:
(e-mail field must be filled in) -->

* Please note: Comments that are inappropriate will be deleted - mean, spiteful, rude comments. Don't let that stop you from posting comments. Just wanted to let you know the rules of the house.