~bzr-pqm/bzr/bzr.dev

589 by Martin Pool
- Add script with example of how to upload over rsync
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
664 by Martin Pool
- change rsync command for upload
12
# note: don't use -a because that can mess up the permissions
659 by Martin Pool
- upload-bzr.dev: fix permissions before uploading
13
680 by Martin Pool
- try again to fix permissions when uploading to escudero
14
chmod a+rX `bzr inventory`
15
16
bzr inventory | 
788 by Martin Pool
- tweak rsync upload script
17
rsync -rltv							    \
589 by Martin Pool
- Add script with example of how to upload over rsync
18
    .								    \
19
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
20
    --include .bzr						    \
21
    --include '.bzr/**'						    \
22
    --exclude-from .rsyncexclude				    \
23
    --exclude-from .bzrignore					    \
787 by Martin Pool
- tweak rsync upload script
24
    --include-from -						    \
589 by Martin Pool
- Add script with example of how to upload over rsync
25
    --exclude \*						    \
26
    --exclude '.*'						    \
27
    --delete-excluded --delete					    \