Re: FW: Update Catalogue file from diff files.

Daniel Cox <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
Hi Stefan,

I finally got around to testing that – and was really helpful, thank you very much.

Regards,

Dan.

From: Stefan Hammerl via Dar-support <[email protected]>
Sent: Tuesday, 19 January 2021 3:40 AM
To: need help compiling or using dar ? This mailing list is for you. <[email protected]>
Cc: Stefan Hammerl <[email protected]>
Subject: Re: [Dar-support] FW: Update Catalogue file from diff files.

Hi Dan,

do you know the merge-command?

In your case you could either merge to subsequent incremental archives or merge the incremental archive with the baseline:
dar --merge <output_archive> -A <diff_file_or_base> -@ <next_diff_file> --overwrite-policy "{-I}[Oo][Rr]" --no-warn

The overwriting policy is used to also delete files in the base archive (<diff_file_or_base>) when they are marked as deleted in the next_diff_file. Read the man page for details.

If a new archive is created you can delete diff_file and next_diff_file and probably rename output_archive properly.

Best regards,
Stefan
Daniel Cox <[email protected]<mailto:[email protected]>> schrieb am Mo., 18. Jan. 2021, 05:43:
Sorry first attempt to send had formatting issues:

Hi everyone,

This is my first post so I hope I am doing it right...

I am using DAR to create a mirror of data from one data store to another. I only ever need to send the latest diff files across the network to the second store and because of this I have decided to use a catalogue and differential backups on the source. I want to minimise the space that DAR uses on the source system. My process is like this:

1. Take baseline backup of whole system

2. Generate catalogue file from baseline backup (then delete baseline backup)

3. Generate first differential backup from catalogue and source

        dar -c <diff-backup-name> -A <catalogue> -R <source>

4. Generate subsequent backups from differential files

        dar -c <diff-backup-name> -A <previous-diff-file> -R <source>

The issue is that the number of diff files that I need to retain on the source system seems to increase quite quickly.

My questions are:
1. Can I somehow add the meta data in the diff backups that are generated back to the catalogue so that I don't have to keep the relatively heavy diff files around?
2. Is what I am doing the right thing or perhaps there's an easier way?

Thanks a bunch!

Dan.


_______________________________________________
Dar-support mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dar-support

_______________________________________________
Dar-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dar-support
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.