X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=backup_next;h=70abf7fd7752db0996a55f546dc0ae408fab5039;hb=HEAD;hp=826dfa5d5468bd45180125155004f7219d62b679;hpb=03f9de2f2a6d643e2eccf52a3119fcdec93f8b35;p=next-scripts diff --git a/backup_next b/backup_next index 826dfa5..70abf7f 100755 --- a/backup_next +++ b/backup_next @@ -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/