Re: rsyncing repositories
- From: Alexander Larsson <alexl redhat com>
- To: Phil Wise <phil advancedtelematic com>, ostree-list gnome org
- Subject: Re: rsyncing repositories
- Date: Mon, 21 Nov 2016 11:23:08 +0100
On tor, 2016-11-17 at 11:35 +0100, Phil Wise wrote:
This is not *quite* safe in the same sense that a regular rsync is,
but its *almost* safe and could be made so with a bit more
scripting.
We've been working on a tool called 'garage-push'[1] for
incrementally
pushing OSTree repositories to a remote server.
It performs uploads in parallel, but maintains the invariant that all
the dependencies of an object are present on the server before the
object itself is uploaded.
This invariant means it can perform incremental uploads and avoid
querying the server for parts of the tree that are unchanged, since
once
it knows that one node of the filesystem tree is present it can
assume
that all the child nodes are also present on the server.
That is pretty cool.
How does this handle the summary file? Do you run "ostree summary" on
the server, or do you have a full local copy of the repo that you run
it on and then upload?
Given a server with a custom API like e.g. S3 which has a way to
enumerate files/object you could reimplement "ostree summary" for the
remote, which would give you a full "ostree push-and-update" operation.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alexander larsson gmail com
He's a scarfaced Catholic cyborg with a robot buddy named Sparky. She's a
sarcastic communist detective who believes she is the reincarnation of an
ancient Egyptian queen. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]