autoBackup

By Dave - March 5, 2015

Hi Kostas, 

Thanks for the reminder, I just release 1.05 here: 
https://www.interactivetools.com/add-ons/auto-backup/

You can download it here: 
https://www.interactivetools.com/add-ons/my_purchases.php

Note that with this version you can set a specific backup folder with this line: 
$GLOBALS['AUTOBACKUP_DIR']    = DATA_DIR . '/backups';

But to backup to an external server you'd need to do more work, such as mapping a remote server to a folder
http://stackoverflow.com/questions/232269/how-to-mount-a-linux-directory-from-a-different-pc-to-your-local-linux-pc

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By petrogus - March 7, 2015

Hi Dave,

Thank you for the update!

Kostas

PetroGus

By petrogus - March 10, 2015

Hi Dave,

I start a research about the backup to external server with no luck until, now.

I there any live solution i can embed?

Keeping backup files on the same server is not the best solution and send over email everyday for over 30 client is lot of work with archiving afterwards.

How and where can i mount an externmal drive in the autoBackup.php like:

sshfs user@remotesystem:/remote/dir /some/local/dir

Regarded to the post Future CMSB Requirements: PHP v5.4 and MySQL v5.5 (http://www.interactivetools.com/forum/forum-posts.php?Future-CMSB-Requirements-PHP-v5.4-and-MySQL-v5.5-79943)
Is this for the next big update (maybe version 3) of the cmsb or even for the next immediate releases as well?

Please advise,
Kostas

PetroGus

By Dave - March 10, 2015

Hi Kostas, 

Right now CMSB doesn't have anything built in to automate backups to a remote server.

Some options to explore:

  • Ask your host what backup options or services they provide
  • Setup a cronjob on another server to connect via FTP and backup the site
  • Setup a local FTP program on your desktop computer to backup on a schedule 
  • Setup sshfs or some other linux command line script such as rsync to make a backup

Autobackup will export a copy of your mysql database, but ideally you want all the files (including /uploads/ folders) from your website in your backup.

Dave Edis - Senior Developer
interactivetools.com