Re: Archive Management

Denis Corbin <[email protected]> Sat, 24 Nov 2007 19:30:41 +0100
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Again,

I have added 'S' and 'i' criterium to the overwriting policy (man page
has been updated too), but it has not been very much tested. I must warn
you that this is development code, you'd better not use it in production
envrironment. In particular, adding a new feature may break archive
compatibility with an older development version (not with a released
version of course).

But I realize that this should not completely address your need when you
have files with EA. You may have TOTO with EA and Data saved in day1,
while in Day2 you could have TOTO with only EA saved (Data unchanged).

The merging would either drop Data or drop the most recent EA.

I must change the merging algorithm to be able to merge Data and EA
separately. But as this is a important work, it will be for next April,
I must suspend the development up to that time due to personal
constraint and will only keep maintaining releases for bug fix during
this period.

I hope you'll understand,

Regards,
Denis.



Denis Corbin wrote:
> Hello Joseph,
> 
> Joseph Watson wrote:
>> Hello,
> 
>> I have an idea for managing backup archives in a very space efficient and 
>> power-full way.   I have looked through the features of dar and it looks to 
>> me like the development version should support what I envision.  I will try 
>> to explain with an example.
> 
>> The archives would be stored and managed on a dedicated server with redundant 
>> storage to protect against loss.
> 
>> Day 1: Full backup
>> Day 2: Incremental referencing day 1
>> Day 3: Incremental referencing day 2
>> Day N: Incremental referencing day n-1
> 
>> For each one of these archives I will define how long I want to keep it (by 
>> some means of my own).  I may keep the weekly backup longer then the daily 
>> for instance.
> 
>> When a backup has expired and I no longer need it, I want to merge it with the 
>> upstream incremental.  This way I can reclaim the space taken by files in the 
>> expired archive that are no longer needed by upstream incrementals. 
> 
>> shouldn't I be able to do this with the -+ and -/ options in the development 
>> version?  Ie if I want to merge day2 into day3
> 
>> dar -+ merge_day2_day3 -A day3 -@ day2 -/ A
> 
> 
> Well, in fact no:
> Suppose you have two files TOTO and TITI. while TOTO has not changed
> since Day1, TITI changed at the time of day2. Thus day2 contains TITI's
> full data while it only contain TOTO's inode reference (ownership,
> permission, file's size, etc.). We will say TOTO is "partially saved" to
>  define this state, by opposition to "fully saved" that correspond to
> the state of TITI here.
> 
> Now at the time of Day3 TITI has not changed since day2 but TOTO does.
> Thus day3 archive will contain TOTO's full data while it will only
> contain TOTO's inode references.
> 
> Now, using the 'A' policy (Always overwrite), day3's data will be
> overwritten by day2's ones, whatever is the file's status fully or
> partially saved. Thus here you will replace TITI's partially saved data
> found in day3 by TITI's full saved data found in day2, which is good,
> but you will also replace TOTO's full data found in day3 by TOTO's
> partially saved found in day2 which is probably not what you expect.
> 
> The solution is to have an new atomic policy that makes the selection
> based on the the status (full or partially saved)  of the files,
> eventually been completed by most recent version information.
> 
> With this policy, you should be able to address you need.
> 
>> In this way you could have what I would call a rolling backup that is space 
>> efficient and very flexible.  It also eliminates the need to do a full backup 
>> on a periodic basis.  Every day you only need to do a incremental from the 
>> previous day.  This will also help when you have a large about of data that 
>> you need to keep a backup of off site.  The smaller backup sizes can be 
>> transferred over a low bandwidth connection to a server that would store and 
>> manage all the backup archives.  I would also keep a copy on a local server 
>> for faster restores.
> 
>> What are your thoughts on this?
> 
> 
> Yep, this is an interesting use of dar, I must document this also
> because due to the many dar's options I guess only few people will
> understand that it is possible to do this way. :-)
> 
> 
> Regards,
> Denis.

- -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dar-discussions mailing list
Dar-discussions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dar-discussions



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSG3RpC5CI8gYGlIRAr3XAJ4+2ipRXbBa0EsuiejMMPa1M4ll6wCglTWp
eOfT9tpCcbkKSTUhvbd2UEg=
=K5KR
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/