Skip to content

SyncConfiguration for Pulling all Streams from a Remote Repository #10

@ruediste

Description

@ruediste

The stream patterns in the SyncConfiguration are evaluated against the locally available streams. This leads to the following problem:

From @Polve:

... my problem was precisely to know in advance which remote streams there are to backup. Since the remote server is managed by other people, my goal is to use the backup server to automatically backup all remote streams, even new ones never initialized before.

So I created a little batch file that leverage the "list" command to know the remote streams and add them to the local repo if not already present. The code is similar to this:

cd <myrepo>
for stream in `ssh root@$serverName "cd /repo; btrbck list" | tail -n +2` ; do
  if [ ! -d $stream ]; then
    btrbck create $stream
  fi
done

It would be nice to have this kind of behaviour directly in btrbck itself ....

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions