1

My clients are now spending a lot of money daily on creating content on my system. A few hours lost could be quite bad for them, and in turn, for me.

Most of the site is fine on daily backups, but there is a content type I'd like to offload onto a backup server when nodes are created or updated. Is this possible? Preferably sending a node object and related files.

I haven't had an issue in a long time but I'm feeling the stress with their investment.

  • How would you be storing the content on the backup server? Just as a text file/images? Or did you mean to another instance of the same drupal website and it would get recreated on there? If something was to happen would you restore the site from your daily backup and then attempt to recreate these pages by copy/pasting from the new backups? Sounds like rather than try and reinvent the wheel you might be better off looking at server redundancy to ensure the whole site is replicated/backed on another server – Leigh Dec 10 '18 at 12:13
  • I meant another instance, not necessarily up to date with the daily backups, but with the same config. My idea is that daily backups would be the base, but I could use node_export module, or a manual method to transfer any new content since the latest backup, if I ever had to use that backup. – Niall Murphy Dec 10 '18 at 12:21
  • Dont think there's anything you can easily setup. It would probably involve creating an API endpoint on your backup site that would expect JSON/XML and would create a node and download images from that data. It would also need to be coded to handle updating existing nodes (As you wanted it to happen on node update as well as creation). Then on your live site add a hook_node_update add code to send the node data to your backup sites API. As mentioned you'd probably be better off trying to schedule automated backups with something like drupal.org/project/backup_migrate – Leigh Dec 10 '18 at 12:35
  • 1
    @NoSssweat lol While I'm sure you did in a very clever way, it flew over my head. Sorry I missed it :p – Niall Murphy Dec 10 '18 at 13:51
  • 1
    @NiallMurphy no prob. You didn't specify your version, but that's for D7 as you can tell, but good for learning anyways. If your site is on D8, Core comes with a REST module that you can use. – No Sssweat Dec 10 '18 at 14:02
-1

With the Backup & Migrate module installed, navigate to: /admin/config/development/backup_migrate/schedule to create & manage database or site file backup schedules:

D8

Note that there are options to backup the default Drupal database, all of the site files, or just specific Drupal file directories.

Under "Settings" there is an admin section to configure the destination address for the backups at: /admin/config/development/backup_migrate/settings/destination

Schedule a complete site backup daily with hourly database backups. The Backup & Migrate developers have the NodeSquirrel service available for offsite backups - but this service only works with the D7 module & is unavailable for D8 currently.

With cPanel, there are better options available now with cPanel Backups & Backup Tool:

BM

If you need a more professional backup service, look into Veeam.

  • 1
    Hi, while this is good information for general backups, you got downvoted by members as the question was about sending data to a separate server immediately as it's created. I already have multiple regular ways of backing up my site. – Niall Murphy Dec 10 '18 at 23:52

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.