Re: Web Server Backups
Thanks every one for your input.
If I use tar, do i need to have a script to do the MYSQL dumps a some have said they do? or will tar still backup the MYSQL side of things fine?
This my current plan;
/ >> Root.tar
/home >> Home.tar
Create a uncompressed tar of / and /home have it updated on a daily bases. This keeps an up to date backup that can be easily and quickly restored. Also allowing single file extraction.
Or possibly rsync for this stage.
Root.tar >> /Archives/Root/$DATE.tar.bz2
Home.tar >> /Archives/Home/$DATE.tar.bz2
After the updates are complete, then create a compressed copy of the updated tar so that there is a backup for each day. Will also look at using date to remove older archives as suggested above.
I don't suppose anyone knows how to use that date option to create a pattern of something like,
Keep all for the last 7 days,
Keep one per week for the last 4 weeks,
Keep one per month for the last 24 months,
Keep one per years for all years.
This would give my friend some flexibility to back date to almost any point in time if needed. This ofcourse will all depend on how much space he wants to dedicate to Backups.
What are peoples thoughts on this? I have plenty of experience writing tar backup scripts for my own personal computers, but not for a web server, looking for advice from those with experience in this field.
Last edited by Jonny87; March 17th, 2013 at 04:36 AM.
Ubuntu 16.04 / Linux 18
“To mess up a Linux box, you need to work at it; to mess up your Windows
box, you just need to work on it”.
Bookmarks