Linode Forum Index Linode Forum
Linode Community Forums
 


Linode backup, I suppose that is exited from the beta...

Click here to go to the original topic
Goto page 1, 2  Next
 
       Linode Forum Index -> Beta Archive
Author Message
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Wed May 05, 2010 4:48 am    Post subject: Linode backup, I suppose that is exited from the beta...  

Hi all,
I have some questions.

Suppose that I have the backup service enabled.
Something on my linode happen, something that I don't like, imagine a system file corruption for example.
Suppose that the system can't boot due to the system file corruption, is it possible to use backup to restart the system?

Is a problem occur, the "file backup" offered from the new backup service, will be powerful as much as the disk image copy from the linode manager? If yes, may I delete the disk image copy from my linode and completely rely on the file backup?

Thanks.
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Tue May 11, 2010 3:50 pm    Post subject:  

it is really interesting that with more than 200 views no one answered yet.
is there someone using the backup service from linode?
Back to top  
jed



Joined: 28 Mar 2009
Posts: 394
Location: New Jersey

Posted: Tue May 11, 2010 7:04 pm    Post subject:  

A backup restore creates a disk image with the filesystem that was on it when the backup happened, so I don't see any reason why you couldn't restore a Linode to a running state from a backup. Undoubtedly, it supplants the copied image you have now.
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Wed May 12, 2010 6:19 am    Post subject:  

jed wrote: A backup restore creates a disk image with the filesystem that was on it when the backup happened, so I don't see any reason why you couldn't restore a Linode to a running state from a backup. Undoubtedly, it supplants the copied image you have now.

yes, I need it,
thanks.
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Wed May 12, 2010 7:28 am    Post subject:  

from a support ticket:
"The backup service will backup the data files for your DBMS. In order to guarantee a consistent backup, it is recommended to dump your databases to file somewhere on the filesystem and allow the backup service to backup that file instead."

I haven't undertood why...
Backing up the data files for DBMS isn't equivalent to backup a dump file?

I'll try to explain better what I mean, if I backup all the data files for DBMS, and than restore this file, after this operations I have a working, updated database. am I wrong?
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 877
Location: Netherlands

Posted: Wed May 12, 2010 9:02 am    Post subject:  

sblantipodi wrote: I'll try to explain better what I mean, if I backup all the data files for DBMS, and than restore this file, after this operations I have a working, updated database. am I wrong?
If the database system updates the data files during the backup, the restore may produce an internally inconsistent database. Using the database system to dump to a file ensures that you have a consistent database in the backup, regardless of what changes are made to the live database during the backup process.
Back to top  
jed



Joined: 28 Mar 2009
Posts: 394
Location: New Jersey

Posted: Wed May 12, 2010 12:03 pm    Post subject:  

pclissold wrote: sblantipodi wrote: I'll try to explain better what I mean, if I backup all the data files for DBMS, and than restore this file, after this operations I have a working, updated database. am I wrong?
If the database system updates the data files during the backup, the restore may produce an internally inconsistent database. Using the database system to dump to a file ensures that you have a consistent database in the backup, regardless of what changes are made to the live database during the backup process.
The biggest thing to worry about is a half-finished transaction that the backup jumps in the middle of. Same with any backup solution, ours or yours. I know most RDBMSen can recover from that, but others cannot (and do you want to chance it?).

File modifications after the backup starts don't go into that backup, so it's just half-finished things at the start (package manager upgrades, SQL transactions, etc) that might make a restore less than optimal. I always recommend keeping a backup you know is good as your snapshot -- you know it's good because you put the system in a backup-friendly state and then pushed the button -- and cron your database to dump to a file before your backup window for best results.

Chris said it well here: http://blog.linode.com/2010/05/04/introducing-the-linode-backup-service/#comment-51549
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Sat May 22, 2010 1:45 pm    Post subject:  

is this service still in beta?

do you know if there is some sort of encryption on the backup side?
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 877
Location: Netherlands

Posted: Sat May 22, 2010 1:57 pm    Post subject:  

sblantipodi wrote: is this service still in beta?
It's in production. See here.

sblantipodi wrote: do you know if there is some sort of encryption on the backup side?
Why would there be? It's just another file on a Linode server, like the disk images on your Linode. If you are storing stuff that that needs to be encrypted, it should be encrypted on your 'node.
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Sat May 22, 2010 2:56 pm    Post subject:  

pclissold wrote: sblantipodi wrote: is this service still in beta?
It's in production. See here.

sblantipodi wrote: do you know if there is some sort of encryption on the backup side?
Why would there be? It's just another file on a Linode server, like the disk images on your Linode. If you are storing stuff that that needs to be encrypted, it should be encrypted on your 'node.

you are right :)
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Sat May 22, 2010 3:03 pm    Post subject:  

don't you think that a block to block backup is better
than the actual file backup?

With the disk image clone from the standard dashboard we can backup all file system, no file attribute problem.
Why they choosed the file way?

Anyway, I bought the backup service for 12 months because I like the 4 rotating slot.
Before I bought the backup service I used to backup my linode manually using the linode dashboard by cloning the image,
do you think that is safe to delete my cloned images and enlarge the "in use" disk image?
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Sat May 22, 2010 3:33 pm    Post subject:  

sblantipodi wrote: don't you think that a block to block backup is better than the actual file backup?

If you're doing a single backup of a single machine, sure. However, storing raw disk images scales very poorly once you start doing multiple incremental backups of numerous systems. Keeping 4 full block-level backups of a Linode 360 will take 48GB; that's a lot of disk.

Quote: With the disk image clone from the standard dashboard we can backup all file system, no file attribute problem. Why they choosed the file way?

Show of hands: who actually uses acls and file attributes? They're relatively rare. If you do, I recommend whipping up a script to crawl the filesystem and dump out a list for future restoration. (Like a mysqldump, but for a different database.)

Quote: Anyway, I bought the backup service for 12 months because I like the 4 rotating slot. Before I bought the backup service I used to backup my linode manually using the linode dashboard by cloning the image, do you think that is safe to delete my cloned images and enlarge the "in use" disk image?

Up to you. For what it's worth, you weren't really backing up your system by cloning the images, since you'd still lose everything in the event of a storage failure, so you're coming out ahead now. But that's just pedantry.
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Sat May 22, 2010 3:56 pm    Post subject:  

thanks for your reply hoopycat,
you are right. :)
Back to top  
sblantipodi



Joined: 13 May 2009
Posts: 450
Location: Italy

Posted: Sat May 22, 2010 4:10 pm    Post subject:  

last question:

if I click on the "Restore to" link on the backup tab of my linode manager, I get the "not enough free space" error.

This means that I need to delete all my disk image from the dashboard before restoring the backup?
Back to top  
db3l



Joined: 13 May 2009
Posts: 556

Posted: Sat May 22, 2010 4:23 pm    Post subject:  

sblantipodi wrote: This means that I need to delete all my disk image from the dashboard before restoring the backup?
Well, more literally it means you need enough free space on the machine you are restoring to for the data being restored.

But yes, if the backup is larger than the unallocated disk quota you have on your Linode, you won't be able to restore a backup to that Linode without freeing up some space.

Now, if your Linode has crashed or all the data been lost, that's not much of a big deal since presumably that's why you're restoring.

But if your Linode is still functioning and you want to restore for some other reason, what I'd recommend is creating a second Linode (even if just for a day) and restoring to that. You can double check that it works (careful when booting if you have hardcoded IP addresses or other services that may conflict with your main Linode - you may want to disable them through a recovery configuration first).

If all looks good, then you can blow away the original disk images and then clone the images between the two Linodes - or just switch their roles and start using the new one. Or if you just needed one of the images from the backup it may be possible to clone that single image back to your original Linode, space permitting. Options abound.

-- David
Back to top  
 
       Linode Forum Index -> Beta Archive Goto page 1, 2  Next
Page 1 of 2