-
Notifications
You must be signed in to change notification settings - Fork 8
SyncConfiguration for Pulling all Streams from a Remote Repository #10
Copy link
Copy link
Open
Labels
Description
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 ....
Reactions are currently unavailable