]> git.ozlabs.org Git - next-scripts/blobdiff - backup_next
update to_build_host a bit
[next-scripts] / backup_next
index 826dfa5d5468bd45180125155004f7219d62b679..70abf7fd7752db0996a55f546dc0ae408fab5039 100755 (executable)
@@ -1,6 +1,11 @@
 #!/bin/bash
 
-rsync -avHP --include next/.git --include next/.git/'**' --exclude next/'**' \
+host="fs"
+[ "$1" ] && host="$1"
+
+rsync -avHP --exclude gitk.cache --exclude next-2'*'/ \
+       --include mmotm/.git --include mmotm/.git/'**' --exclude mmotm/'**' \
+       --include next/.git --include next/.git/'**' --exclude next/'**' \
        --include quilt/.git --include quilt/.git/'**' --exclude quilt/'**' \
-       --include tools/.git --include tools/.git/'**' --exclude tools/'**' \
-       next/ fs:next/
+       --include next-fixes/.git --include next-fixes/.git/'**' --exclude next-fixes/'**' \
+       --delete --delete-excluded next/ "$host":next/