Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Back-up Question
PostPosted: Wed Nov 24, 2010 8:06 pm 
Offline
Senior Newbie

Joined: Fri Mar 05, 2010 3:51 pm
Posts: 6
I have the Linode backup service-- is there a guide somewhere in the Library? I did a search but did not find it. I have a noob question- if you wanted to could you wipe your Linode clean and then restore a backup? Or is it better to restore a backup to a separate Linode and then copy/mount that to your original Linode?


Top
   
 Post subject:
PostPosted: Thu Nov 25, 2010 10:02 am 
Offline
Linode Staff
User avatar

Joined: Fri Jan 29, 2010 8:44 am
Posts: 65
Location: New Jersey
There's no guide on using the service at the moment. You can do both! It depends on your reasons for restoring. If you have room on your plan, you can shrink your current disk images and restore as well. You'll have both your current images and the restored ones available to you in your profile. :D

Edit: There's a guide in the Linode Library now!

http://library.linode.com/linode-platform/backups/


Last edited by Stan_Theman on Thu Jan 20, 2011 5:10 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Nov 25, 2010 12:40 pm 
Offline
Senior Newbie

Joined: Fri Mar 05, 2010 3:51 pm
Posts: 6
Thanks Stan-- hey, why are you working today? I have one other dumb question- each backup snapshot includes all the files on my linode including databases, correct?


Top
   
 Post subject:
PostPosted: Thu Nov 25, 2010 2:11 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Stan is at the office preparing turkeys for the Linode Turkey Drop later today.

Yes, the backup snapshot has everything. Note that the database files it backs up (not mysqldump'd files, but the actual things in /var/lib/mysql or whatnot) will be in an inconsistent state, so it's a good idea to cron up a mysqldump before the daily backup and/or use binlogs.

(More than once, I have restored a backup to another, empty Linode, pushed the Boot button, and Everything Worked. :-)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Thu Nov 25, 2010 3:15 pm 
Offline
Senior Newbie

Joined: Fri Mar 05, 2010 3:51 pm
Posts: 6
Thanks, hoopy. I figured that to be the case but wanted to double check.

For all you Turkey eaters, have a good holiday!


Top
   
 Post subject:
PostPosted: Thu Nov 25, 2010 8:04 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
hoopycat wrote:
Yes, the backup snapshot has everything. Note that the database files it backs up (not mysqldump'd files, but the actual things in /var/lib/mysql or whatnot) will be in an inconsistent state, so it's a good idea to cron up a mysqldump before the daily backup and/or use binlogs.


Just a quick note on this: for best results, a mysqldump should share-lock all databases while it runs. This will cause a short outage on your application. The best practice is to replicate to a second server and make your backup dumps there.


Top
   
 Post subject:
PostPosted: Mon Nov 29, 2010 1:46 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
BarkerJr wrote:
hoopycat wrote:
Yes, the backup snapshot has everything. Note that the database files it backs up (not mysqldump'd files, but the actual things in /var/lib/mysql or whatnot) will be in an inconsistent state, so it's a good idea to cron up a mysqldump before the daily backup and/or use binlogs.


Just a quick note on this: for best results, a mysqldump should share-lock all databases while it runs. This will cause a short outage on your application. The best practice is to replicate to a second server and make your backup dumps there.


MySQL replication has something of a reputation for being tricky to set up, and unreliable (although I've not used it myself)... For most people, scheduling backups during an off-peak period with a maintenance notice on the site is sufficient . Heck, if your database dumps only take a few seconds, you might not even need the maintenance notice, since users might not even notice the delay.


Top
   
 Post subject:
PostPosted: Tue Nov 30, 2010 6:23 am 
Offline
Linode Staff
User avatar

Joined: Fri Jan 29, 2010 8:44 am
Posts: 65
Location: New Jersey
Linodapalooza wrote:
Thanks Stan-- hey, why are you working today?


Like Hoopycat said, someone had to prepare the turkeys :D


Top
   
PostPosted: Wed Jan 19, 2011 9:44 pm 
Offline
Junior Member

Joined: Sat Nov 06, 2010 4:36 am
Posts: 45
I'm not quite clear on the steps involved. If I want to test this, what do I do?

1. Shut down my linode.
2. Delete the disk I want restored.
3. Create a new disk of the same size and name. Is this step necessary?
4. Restore to the new disk.

or

1. Shut down my linode.
2. Delete the disk I want restored.
3. Restore and the new disk will be created automatically for me with the same name?

Thanks,

doug


Top
   
 Post subject:
PostPosted: Wed Jan 19, 2011 10:37 pm 
Offline
Junior Member

Joined: Sat Nov 06, 2010 4:36 am
Posts: 45
Support answered me - the 2nd shorter procedure is all that is needed.

doug


Top
   
 Post subject:
PostPosted: Thu Jan 20, 2011 7:36 am 
Offline
Senior Newbie

Joined: Thu Nov 18, 2010 8:56 am
Posts: 18
if i am wanting to do apt-get upgrade, should i wait for the backup post processing to finish? or is it safe to proceed before post processing has finished?


Top
   
 Post subject:
PostPosted: Thu Jan 20, 2011 10:02 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
carol wrote:
if i am wanting to do apt-get upgrade, should i wait for the backup post processing to finish? or is it safe to proceed before post processing has finished?


You're safe. By the time it started copying data to the backup server, it already had a consistent snapshot of your stuff. Any changes made after it takes that snapshot won't be backed up.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Tue Jan 25, 2011 3:11 am 
Offline
Senior Newbie

Joined: Thu Nov 18, 2010 8:56 am
Posts: 18
thanks :)
hoopycat wrote:
carol wrote:
if i am wanting to do apt-get upgrade, should i wait for the backup post processing to finish? or is it safe to proceed before post processing has finished?


You're safe. By the time it started copying data to the backup server, it already had a consistent snapshot of your stuff. Any changes made after it takes that snapshot won't be backed up.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group