Jump to content

Backup philosophy?


Recommended Posts

Hi,

Clearly we all agree that backups are important. But beyond that it's not so clear exactly what that means.

For example How often? Where should back up's live? (locally vs external), How much redundancy is needed? Is RAID and 1 backup enough?  ETC? ETC? ETC?

One such debate can be had regarding a DataBase backup.  The closer to real time your DB backup becomes the less data lost in a catastrophic event. Right? Well not so fast. If corruption to the data base happens, it's likely to also corrupt your backups too. If you're making DB back ups to frequently you could find yourself with a corrupt DB and a corrupt BACKUP.

So I want to hear all about your backup philosophy. Nothing off limits here. Do you backup a live DB? Do you shut down your site temporarily? Or do you simply take a snapshot of the DB and back up from the snap snot.

Where? How? When? How Often? 

Please share your BackUp strategy!!
PS: if you don't have one, you need one.

Thank you 🙂

Link to comment
Share on other sites

The only right answer here is to ensure you have full backups, the frequency and how many you retain will depend on many factors, hosting setup, how busy the site is, how much room you have for backup storage, how critical the site is, if you are doing financial transactions on the site, how often, etc etc.  There really isn't a one size fits all solution when it comes to backups though, they key is to find the proper solution that fits the needs of your site and be ready in case you ever need one.  

 

 

 

Link to comment
Share on other sites

43 minutes ago, Rhett said:

The only right answer here is to ensure you have full backups, the frequency and how many you retain will depend on many factors, hosting setup, how busy the site is, how much room you have for backup storage, how critical the site is, if you are doing financial transactions on the site, how often, etc etc.  There really isn't a one size fits all solution when it comes to backups though, they key is to find the proper solution that fits the needs of your site and be ready in case you ever need one. 

While I don't disagree, Not so much asking for me per se.
Quite interested in simply hearing how others do it and what exactly their strategy is. 

 

Link to comment
Share on other sites

What kind of backups and when it depends from your needs...

To get a backup is one step but not enough.

Where you store it is another important question as i have seen many to get the backups on the same server only and for sure it is not the best practice.

If you use remote backups ensure that the remote backup server connects to the main server and pull your backups so if your site get hacked it will not be possible for the attacker to get in to the backup server.

And the last very important thing that almost 90%+ don't do is to test the backup if it is working or not.

Sorry that i am not replying a lot but i am extremely busy for the moment...

Link to comment
Share on other sites

36 minutes ago, ASTRAPI said:

pull your backups

test the backup if it is working or not.

Such good tips. I figured out both of these things. I am pulling with RSync and not pushing.

Also I backup a live database and use options to do unlocked single transaction backups of the tables into a single Gzip file

Seamless for the users, no down time.

I pull it after it's had enough time to complete by cleverly scheduling my cron requests.  Seems to be working.

Yes, I have tested my restore. Such a smart thing to do. Thanks for sharing. 

Link to comment
Share on other sites

I have a dedicated server and in my provider's offer there is 100Gb on a ftp server included. 

Daily mysqldump, and tar of the whole /www/forums and /etc.  The ftp server is mounted with fuse, so encrypt and copy there transparently.  

I also have a synology at home, and I pull the same files via rsync.

Bottom line : I have local backups on the server and 2 remote copies at different locations. I keep a week rotation before deleting the old ones.

 

Testing : I regularly update my TESTINSTALL (on a small VM at home) with the files from the production backups. It works flawlessly.

Link to comment
Share on other sites

5 hours ago, b416 said:

I have a dedicated server and in my provider's offer there is 100Gb on a ftp server included. 

Daily mysqldump, and tar of the whole /www/forums and /etc.  The ftp server is mounted with fuse, so encrypt and copy there transparently.  

I also have a synology at home, and I pull the same files via rsync.

Bottom line : I have local backups on the server and 2 remote copies at different locations. I keep a week rotation before deleting the old ones.

 

Testing : I regularly update my TESTINSTALL (on a small VM at home) with the files from the production backups. It works flawlessly.

That sounds like an awesome system. The only question, do you have to manually remove the excess backups weekly? I thought about doing this but I don't want to go on vacation and have my server will up with backups because I'm not there to remove stuff.

Link to comment
Share on other sites

Just now, SJ77
5 hours ago, b416 said:

I have a dedicated server and in my provider's offer there is 100Gb on a ftp server included. 

Daily mysqldump, and tar of the whole /www/forums and /etc.  The ftp server is mounted with fuse, so encrypt and copy there transparently.  

I also have a synology at home, and I pull the same files via rsync.

Bottom line : I have local backups on the server and 2 remote copies at different locations. I keep a week rotation before deleting the old ones.

 

Testing : I regularly update my TESTINSTALL (on a small VM at home) with the files from the production backups. It works flawlessly.

That sounds like an awesome system. The only question, do you have to manually remove the excess backups weekly? I thought about doing this but I don't want to go on vacation and have my server will up with backups because I'm not there to remove stuff.

No, it’s all in a script started by cron, encrypt, backup then remove the files older than 7 days.

Link to comment
Share on other sites

I backup my db on a daily (more like nightly) basis in the off hours and also rsync my entire /uploads folder. I am considering making it twice daily. For the db backup I use the current day in the filename, so the backups are overwritten on a monthly basis. 

Link to comment
Share on other sites

7 hours ago, jair101 said:

I backup my db on a daily (more like nightly) basis in the off hours and also rsync my entire /uploads folder. I am considering making it twice daily. For the db backup I use the current day in the filename, so the backups are overwritten on a monthly basis. 

That’s clever! I wonder if it’s possible to use the day of the week so it’s overwritten weekly

Link to comment
Share on other sites

On 3/5/2020 at 1:30 PM, SJ77 said:

Please share your BackUp strategy!!

No idea. I'm hosted by Invision, and in it I trust. Works for me. :happy:

(I'm sure that's not the answer you were looking for, but I just wanted to participate. :tongue:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...