X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=backup_next;h=70abf7fd7752db0996a55f546dc0ae408fab5039;hb=HEAD;hp=062648dbb8615019c3a5b54908c36773e0175dbe;hpb=9ac36d7c026310b172fc4a0d58473cda7e11c61e;p=next-scripts diff --git a/backup_next b/backup_next index 062648d..70abf7f 100755 --- a/backup_next +++ b/backup_next @@ -1,5 +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/'**' \ - --delete --delete-excluded next/ fs:next/ + --include next-fixes/.git --include next-fixes/.git/'**' --exclude next-fixes/'**' \ + --delete --delete-excluded next/ "$host":next/