~bzr-pqm/bzr/bzr.dev

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh -ex

# example of how to upload a bzr tree using rsync

# --include-from is used to make sure that only versioned files and
# control files are copied.  We use includes/excludes rather than
# --files-from so that we can delete any files from the destination
# that are no longer present on the source.

cd ~/work/bzr 

bzr inventory |
rsync -av							    \
    .								    \
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
    --include-from -						    \
    --include .bzr						    \
    --include '.bzr/**'						    \
    --exclude-from .rsyncexclude				    \
    --exclude-from .bzrignore					    \
    --exclude \*						    \
    --exclude '.*'						    \
    --delete-excluded --delete					    \