~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/upload-bzr.dev

  • Committer: Martin Pool
  • Date: 2005-06-11 01:55:29 UTC
  • Revision ID: mbp@sourcefrog.net-20050611015529-26a9c988699de34f
- help formatting fix from ndim

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -ex
 
2
 
 
3
# example of how to upload a bzr tree using rsync
 
4
 
 
5
# --include-from is used to make sure that only versioned files and
 
6
# control files are copied.  We use includes/excludes rather than
 
7
# --files-from so that we can delete any files from the destination
 
8
# that are no longer present on the source.
 
9
 
 
10
cd ~/work/bzr 
 
11
 
 
12
# note: don't use -a because that can mess up the permissions
 
13
 
 
14
bzr inventory |
 
15
rsync -rltv                                                         \
 
16
    .                                                               \
 
17
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
 
18
    --include-from -                                                \
 
19
    --include .bzr                                                  \
 
20
    --include '.bzr/**'                                             \
 
21
    --exclude-from .rsyncexclude                                    \
 
22
    --exclude-from .bzrignore                                       \
 
23
    --exclude \*                                                    \
 
24
    --exclude '.*'                                                  \
 
25
    --delete-excluded --delete                                      \