LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-09-2011, 09:45 AM   #31
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 37

Rep: Reputation: 2

Quote:
Originally Posted by Skaperen View Post
Today is May 6. Suppose you do initial snapshots the first day of each month. Someone comes to you and says they need file "foobar" as it was on March 14. Do you need to have the March 1 initial snapshot? Or would the April 1 be sufficient?
snapshots are snapshots, like a photograph ... there is no "initial" snapshot per se.

an initial "send" of the system (which can be from any snapshot) is restored as a whole file system it knows nothing about the past, only what it looks like at the time ... but everything that was there at the time of the snapshot is available in it.

an incremental "send" takes the name of the previous snapshot and the snapshot you want to get too and sends the equivalent of the block changes on the disk ... if only part of a file has changed then only the bit is sent.

Just to note at this point, if you make a "snapshot" on the file system it sits there until you want to "send" it or delete it ... months or years could pass before you do anything with it ... you can access all the existing snapshots at any time you want ... unlike live file systems which change after you've backed them up.

If a client wants the file back at the 14th, you need to get to the 14th ... if the file hasn't changed up till April 1st, then an initial "send" to get that snapshot will get you the file back.

we only do one initial "send" ... and thereafter increment our way through the days ... we don't need another initial "send" if we're up to date.

Quote:
Originally Posted by Skaperen View Post
That's a lot of tapes to back up a 2TB drive. Even the carousel or stacker drives might be exceeded these days. But 2TB drives are under $100, so backing one up to a couple others would be the way to go, whether juggling drives like they were tapes, or having a big backup server where all the drives are spinning or spinnable.
We looked at DLT, but that scared us ... you needed to push data so fast at it, and it liked concurrent streams ... we stuck with what we knew, but it just couldn't cope with what we needed.

[QUOTE=Skaperen;4348390]For bulk backup, I think hard drives are still better than flash drives. But for bootable rescue systems and installation media, flash drives are now the way to go (more reliable than CDs and DVDs).

If it were to get the capability to do reverse increments, it could be the win for me.

just tried:
jadrevenge@laptop:~$ zfs send -i rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-09-09h08 rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-03-07h50 > /tmp/zfs-send.txt
WARNING: could not send rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-03-07h50:
incremental source (rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-09-09h08) is not earlier than it

so no you can't reverse the order ...


Quote:
Originally Posted by Skaperen View Post
USB??? If you mean external USB drives are in use ... I've had a very high failure rate for those, running at about 66% in a year or two. And that's multiple brands. OTOH, my two year failure rate for internal SATA drives, even the cheap consumer models, is under 2%.
we've had issues ... almost exclusively with the power supplies ...

and yes, USB was not our first choice ...

I wanted ESATA, but that's just not stable enough either.

Quote:
Originally Posted by Skaperen View Post
But, still, a reverse increment is better because you don't need any previous/older increments to restore back to that point. So you can discard every increment earlier than date X, but still restore date X.
as I said, this isn't a problem for us because we _always_ restore so we have no issues with increments.

Jon
 
Old 05-09-2011, 02:14 PM   #32
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jadrevenge View Post
snapshots are snapshots, like a photograph ... there is no "initial" snapshot per se.
But that is a "view" within the filesystem itself. If we were not talking of making a backup, then all we are considering is the view in and of itself, within the filesystem. At least that's how I understand it.

Quote:
Originally Posted by jadrevenge View Post
an initial "send" of the system (which can be from any snapshot) is restored as a whole file system it knows nothing about the past, only what it looks like at the time ... but everything that was there at the time of the snapshot is available in it.
This would be the whole filesystem as would normally be seen at the time of the snapshot.

Quote:
Originally Posted by jadrevenge View Post
an incremental "send" takes the name of the previous snapshot and the snapshot you want to get too and sends the equivalent of the block changes on the disk ... if only part of a file has changed then only the bit is sent.
But this is a forward increment, right?

Quote:
Originally Posted by jadrevenge View Post
Just to note at this point, if you make a "snapshot" on the file system it sits there until you want to "send" it or delete it ... months or years could pass before you do anything with it ... you can access all the existing snapshots at any time you want ... unlike live file systems which change after you've backed them up.
Is this the only thing you can do with a snapshot? Or is it possible to "view" (mount) the specific snapshot in a read-only mode? By comparison, I can do an export from SVN from a specific revision number.

If it is possible to view that snapshot that way, then it could be possible to make a reverse increment from an application that compares both trees. Restoration might still be tricky.

Quote:
Originally Posted by jadrevenge View Post
If a client wants the file back at the 14th, you need to get to the 14th ... if the file hasn't changed up till April 1st, then an initial "send" to get that snapshot will get you the file back.
But if I deleted all data up to April 10, then I'm out of luck because if the file had not changed between the oldest "send" still present (April 10) and the desired date (April 14) then the incremental sends would not have any of this file's data. Even if there were changes, only the blocks that were changed would be in these sends.

That's where a reverse increment has the advantage since it is based on the current full filesystem state. To restore a file to an older state, you work backwards from the current state.

These reverse increments are NOT a "restore the whole filesystem when the disk dies" type of backup. They are just historical increments, only. But this is done on the first backup server itself rather than on the working servers directly. So this is the primary backup of the working server, plus a generated archive based on what gets backed up. Then I make a backup of the primary backup server. This is the secondary backup/archive (the archive on the secondary backup server is not generated here, but instead is just a replica of the archive generated by the primary backup server). I can make multiple secondary backup/archive servers.

Right now I have one primary backup server on site and one secondary backup server offsite. Plans include multiple primary backup servers to split up the load (each handling just a configured set of working servers), and 2 or 3 offsite secondary servers for each (near offsite and far offsite).

The file level granularity is working OK for now. Block level granularity might be a plus in the future.

Quote:
Originally Posted by jadrevenge View Post
we only do one initial "send" ... and thereafter increment our way through the days ... we don't need another initial "send" if we're up to date.
But sliding window deletion of the sent files isn't really possible with this. A delete of an initial send invalidates all the increments after it, up to the next time you do another initial send. If you only did one send, the whole backup depends on keeping it and everything after it.

If I do an initial send on the 1st of each month, then at least I could delete all the March sends when I no longer need any data prior to April 1. But that's a one month granularity of deletions.

What I mean by sliding window deletion, in case it's not understood, is that I decide to keep for example 180 days of increments. The window size is thus 180 days. Each day the window slides forward by one day and the increment that falls off at the far end is deleted. So there is one delete per day. In actuality, it would be more based on space available, so the window can also grow or shrink. This part is not implemented in an automated way, yet. It's down manually for now.

Quote:
Originally Posted by jadrevenge View Post
just tried:
jadrevenge@laptop:~$ zfs send -i rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-09-09h08 rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-03-07h50 > /tmp/zfs-send.txt
WARNING: could not send rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-03-07h50:
incremental source (rpool/export/home/jadrevenge@zfs-auto-snap_daily-2011-05-09-09h08) is not earlier than it

so no you can't reverse the order ...
I doubt it could have been that simple to have a reverse increment.

Quote:
Originally Posted by jadrevenge View Post
we've had issues ... almost exclusively with the power supplies ...

and yes, USB was not our first choice ...

I wanted ESATA, but that's just not stable enough either.
For home (and desktop at work) I am trying out SATA connected hotswap bays that use internal 3.5 SATA drives in a tray. There are 3 drive slots in a frame that fits in 2 external drive bays. So far these are working fine. They use internal drives which are lower in price than external USB drives, are faster than USB, and don't require a bunch of electrical outlets to power them through a tangle of cords. They are a little awkward if you don't have extra trays. But there are now being made similar bays that don't use trays at all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring rsync backups - how? jsp_1983 Linux - Newbie 3 03-20-2011 12:43 PM
using rsync for incremental backups cccc Linux - Server 5 01-29-2010 06:02 AM
rsync - Backups pkraus109 Linux - Server 2 05-21-2009 12:36 PM
Rsync backups gabsik Linux - General 3 11-24-2006 07:14 PM
Rsync backups gabsik Linux - Networking 1 03-30-2006 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration