Re: Features of dar

Alexander Skwar <[email protected]> Fri, 22 Jun 2007 13:12:25 +0200
Newsgroups gmane.comp.sysutils.backup.dar.general
Organization n/a
Message-ID <[email protected]>
Hello!

Denis Corbin <[email protected]> wrote:

> Alexander Skwar wrote:

>> So, here it goes.
>> 
>> - Can dar show me, which different "versions" of a file have been
>> backed up?
>> Example: Suppose you're backing up the /data directory, which
>> contains the file "report.txt". You're doing a backup every day.
>> Can dar now easily "tell" me, that the file "/data/reports.txt"
>> exists in the backups with a modification date of, let's say,
>> 2006-10-12, 2006-12-24 and 2007-05-05? Can I then also easily
>> retrieve the file with the modification date of 2006-12-24?
> 
> First, each backup contains only one copy of a given file.

Of course :)


> It is easy to 
>  known whether a given file is saved or not in an archive (Full /
> incremental backup) and to get the 'ls-like' output of the archive
> contents thus of that file (some filtering mecanismes are present inside
> dar, but you can also pipe dar's output through grep for example).

You mean with "dar -l backup-name"? Yes, that's indeed quite
easy.

> Among 
> this output figures the last modification date.

Yep.

> Thus to answer your 
> question, you can get the date of modification of a given file contained
> in an archive.

Okay.

> Second, as you can guess, you have to would have to list each archive to
> be able to find the version the version of a given file in a given
> state. 

Urgs...

> As I am a very lazy person 

Me too ;)

> and is using dar, I thus developped  
> dar_manager beside dar.

Okay, since I've got to encrypt the archives, I'm running into
other problems, which I have described in my latest post. But
as Thomas Jacob just showed me the "-G" option, that's no problem
anymore. Fine.

I'm currently reading the Tutorial.html page. In there, you write:

,----[ Tutorial, DAR_MANAGER TUTORIAL ]
| The problem however is that when dar_manager will need to recover a file
| located in this archive it will try to open the archive   
| ~/Catalogue/CAT_linux_full for restoration, which does not contain any 
| data because it is just the catalogue of the archive.   
| 
| No problem if you made this mistake, thanks to the -b option we can change
| the basename of the archive, and thanks to the -p option you can change
| the path at any time.  
`----

This is about adding an extracted catalog to the DMD. What confuses
me, is that you talk about a "mistake" in the 2nd paragraph. What
mistake? And what would need to be done, to NOT make this mistake?
Further on in that tutorial section you show how to fix this issue.

> of archive M (M is the name of the archive you have been using). If you
> are very lazy like I am,

I do not think that I am. I tend to think, that I'm one of the laziest
persons on the earth *g*

> you can also use some simple script that can be 
> provided to dar thanks to -E option to automatically mount/unmount a DVD

I'd then use my dar_download.sh script, which would fetch the needed
files from the FTP server. DMD sounds nice, gotta play with this some 
more next week.

>> Example: We've got the file /data/quotes.txt. It's backed up every
>> day. Today we discover that the file is gone. Can I know somehow
>> get the  information from dar when the file last existed?
> 
> Yep, absolutely.

Again with the help of DMD/dar_manager, right?

>> Thanks a lot,
>> 
> 
> You are welcome,

Again: Thanks a lot for providing such a detailed answer. I really
appreciate that you took some time to respond. 

And I'd like to say that I'm sorry for sending this message to both
lists. I noticed that dar-general is moderated and didn't have any 
postings since April. So I (wrongly) assumed that the moderator of
the dar-general list is "MIA".

Well. Sorry and again: Thx!

Alexander Skwar


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/