Automated Offsite Backups

NightTalon65

New member
Licensed customer
Does anyone know a good way or service to back up critical parts of my forums, like the database, attachments, and related files?
 
Does anyone know a good way or service to back up critical parts of my forums, like the database, attachments, and related files?
Did you search for the word "Backup" in the add on section or the rest of the forum? You's easily have stumbled about this add on


that does all what you are asking for. Obviously, what makes sense totally depends from your options, your hosting situation, the size of your forum and your abilities.
 
Did you search for the word "Backup" in the add on section or the rest of the forum? You's easily have stumbled about this add on


that does all what you are asking for. Obviously, what makes sense totally depends from your options, your hosting situation, the size of your forum and your abilities.
I looked around and I apparently missed this completely, it appears to work for what I need for onsite backup so thats something at least. thanks
 
Making backups it's not enough in itself imo. You must also check the backup to make sure that it has been done correctly and it's not corrupted.
 
im curious why you said that as im already on a vps with namecheap
There are some people on this forums that are worth ignoring. Not many, but some. ;)
how would I go about doing that? I am very new to this and am still learning as I go.
Nuff said: Nobody wants backups everybody wants restore. So you should definitively try to restore your backups on a test system on a regular basis. It would turn out very bad if you made up backups regularly but never restored them and once you need to due to a dataloss you suddenly realize that your backup did not work as intended...

A very old website (dating back to 1997 and thus not even having SSL) that gives a very good and entertaining intro to the backup topic is this:


Back then it was intended to be advertising a commercial backup software in a humorous way, today it is a dinosaur still sitting on the web untouched for 30 years and still worth visiting.

While the backup add on by 8wayrun is a simple and well integrated solution: As you are on a VPS and thus do not suffer from limtations typical for shared hosting you may alternatively use any backup software for unix (there are loads) or simply create a couple of shell scripts using tar, gnuzip and sqldump and place them in your crontab. The backup add on does, if I remember correctly, by default backups only on thursday nights and it does always a full backup of the files. Depending from your forum and our needs you may want more frequent backups and/or rather incremental backups of the filesystem instead of full backups. It is not very difficult and there are plenty of examples on the web.
 
There are some people on this forums that are worth ignoring. Not many, but some. ;)

Nuff said: Nobody wants backups everybody wants restore. So you should definitively try to restore your backups on a test system on a regular basis. It would turn out very bad if you made up backups regularly but never restored them and once you need to due to a dataloss you suddenly realize that your backup did not work as intended...

A very old website (dating back to 1997 and thus not even having SSL) that gives a very good and entertaining intro to the backup topic is this:


Back then it was intended to be advertising a commercial backup software in a humorous way, today it is a dinosaur still sitting on the web untouched for 30 years and still worth visiting.

While the backup add on by 8wayrun is a simple and well integrated solution: As you are on a VPS and thus do not suffer from limtations typical for shared hosting you may alternatively use any backup software for unix (there are loads) or simply create a couple of shell scripts using tar, gnuzip and sqldump and place them in your crontab. The backup add on does, if I remember correctly, by default backups only on thursday nights and it does always a full backup of the files. Depending from your forum and our needs you may want more frequent backups and/or rather incremental backups of the filesystem instead of full backups. It is not very difficult and there are plenty of examples on the web.
What I am looking for is automation of the backup process, to be honest. I have already learned how to do it with command lines and firezilla but the latter is very time consuming, often taking several hours to finish. I would prefer something like a weekly full backup with minor daily backups, so if you have any suggestions on ways to point me that would be most welcome. As for testing it in a test server im unsure how to go about setting that up at all.
 
how would I go about doing that? I am very new to this and am still learning as I go.
The best way imo to check the backup to make sure that it has been done correctly is to set up a test forum using a separate database and restore there the latest backups. Doing that it will cost you a little time, but it's worth the while.
 
What I am looking for is automation of the backup process, to be honest.
As said before: Automation is done via an entry in the crontab, so that's not an issue. For backupping there are many different ways from backup software to simple shell scrips that all work equally good. You just have to make a decision which way to go.
I have already learned how to do it with command lines and firezilla but the latter is very time consuming, often taking several hours to finish.
If you have a lot of data it takes a lot of time to create a full backup and possibly even longer to store it remotely.
I would prefer something like a weekly full backup with minor daily backups, so if you have any suggestions on ways to point me that would be most welcome.
Google for "incremental backup webpage database linux" or something alike - I am sure there are loads of guides that are easy to find. With XF it is as easy as to save the whole directorty it is installed in along with a dump of the database - no rocket science involved. A perfectionist would close the forum during the backup to avoid any data inconsistencies - this is again where the named add on makes life easier than other solutions.
As for testing it in a test server im unsure how to go about setting that up at all.
The same as your VPS: You need a LAMP environment and use your backup to install a clone of your forum there. If you don't know how make use of a backup - what's the point in creating one then?
 
What I am looking for is automation of the backup process, to be honest. I have already learned how to do it with command lines and firezilla but the latter is very time consuming, often taking several hours to finish.
Mine is completely automated via command line and crontab. The key to mine is using rclone. I run a few different servers, and I use rsync to send the backups to other servers, and use rclone to send a backup to one of my 1TB OneDrive accounts, where it then syncs to my server at home. (And I could actually change that around if I wanted to, as I could tunnel into my NAS to receive the backup with rsync, and store in a directory that syncs to OneDrive automatically.)

One could also use an R2 bucket at Cloudflare as a backup location; it would cost money to store larger sites (as it exceeds their free allowance) but I'm pretty sure I tested it with rclone and was able to automate it there as well.

Main thing is, I have daily backups in three different locations, including one under my own roof.
 
Back
Top Bottom