Support ⇒ Upgrades ⇒ Webster: DragonflyCMS Linux tools ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexUpgrades

Webster: DragonflyCMS Linux tools Reply to topic


A while ago I wrote a small script to automatize and speedup Dragonfly CMS powered website upgrades and backups, today is available for download and use.

If you are on Linux, download and executesh dragonflycms.sh --help

Wiki: code.google.com/p/nano...bster?tm=6

Download: dragonflycms.org/Downl...ls/id=599/

Change log:
v0.4 introduced --restore (restore from backups).
v0.5 updated archive source server from googlecode to insidesupport.
v0.6 support for multiple configuration file, one each website.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS

Last edited by NanoCaiordo on Wed Apr 03, 2013 11:29 pm; edited 7 times in total


The shell script won't run on my box... I think it's an encoding issue. I get errors on line feeds I think.

Upgraded one of my sites without issues that I can see so far.

Test Signature

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Uploaded a new version where line feeds are now UNIX, dammed editors, and encoding is stripped from file. Download a fresh copy, you should have Epoc 5, last is 7.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


This is really nice Nano. I updated two sites with no instance, but on the third, I get a blank page only when trying to load the site from a browser on the server itself. It loads fine from a different computer within the home network though.
Edit: I was using an old theme that I had altered a couple years ago. Changed to the default theme in settings and it works fine now.

This sure makes upgrades easier. Thank you Nano.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Devuan jessie / Apache 2.4x / MariaDB 10.x / PHP 5.6x / DF 9.4


Glad it can help, I've used this on my sites and dragonflycms.org and I was really happy with the outcome.

I finally discovered how to use it for v9 and v10 updates using code.google ... when v10 will be released and so pushed into the "default" branch then it will be able to automatically upgrade to Release (hg default), v9 (hg v9 branch) or v10 (hg v10 branch) Big grin

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Updated download location (see first post) as googlecode doesn't support "updating" a download, a new one needs to be created every time.

Updated code to download directly from googlecode.

Extended support to
  • "default" (do not use this yet as you will get a really old v10)
  • "v10" working directory
  • "v9" working directory
*"default" in future will hold the last released stable version.

Fork SQL and Files backups compression to background.
*do not CTRL+C or exit the session till you see "sql database compressed" and "files compressed".

Added --install for fresh installs, great to also update your CDN.
*later will add a --cdn option to create an ad hoc CDN, or updating it.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Major changes:
v0.4 introduced --restore (restore from backups).
v0.5 updated archive source server from googlecode to insidesupport.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


v0.6 introduce multiple configuration files.
All user configuration options are now stripped from the shell script making script and websites upgrades way easier and faster as it allows you to store a configuration file each website.

Default configuration supplied, no need to be renamed (at your choice).

Configurations file needs to be in the same path where the script is saved and must use "webster-" as prefix, example:
"webster-default.conf" will be internally shown as "default"
"webster-site.net.conf" will be internally shown as "example.net"
"webster-site.org.conf" will be internally shown as "example.org"

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS

All times are UTC


Jump to: