[Pkg-bazaar-commits] ./bzr/unstable r589: - Add script with example of how to upload over rsync

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:19:48 UTC 2009


------------------------------------------------------------
revno: 589
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-05-30 12:43:33 +1000
message:
  - Add script with example of how to upload over rsync
added:
  contrib/upload-bzr.dev
-------------- next part --------------
=== added file 'contrib/upload-bzr.dev'
--- a/contrib/upload-bzr.dev	1970-01-01 00:00:00 +0000
+++ b/contrib/upload-bzr.dev	2005-05-30 02:43:33 +0000
@@ -0,0 +1,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 -avvP							    \
+    .								    \
+    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					    \



More information about the Pkg-bazaar-commits mailing list