]> git.ozlabs.org Git - next-scripts/commitdiff
backup_next: update to remove qult and mmotm
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 14 Sep 2023 22:36:27 +0000 (08:36 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 14 Sep 2023 22:36:27 +0000 (08:36 +1000)
also cd to the top directory

backup_next

index 70abf7fd7752db0996a55f546dc0ae408fab5039..e035be3fc33ab29476e09dca8a14a83b075b58f1 100755 (executable)
@@ -3,9 +3,14 @@
 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 next-fixes/.git --include next-fixes/.git/'**' --exclude next-fixes/'**' \
-       --delete --delete-excluded next/ "$host":next/
+BASE=$HOME/kernels/next
+
+if ! cd ~/kernels/next; then
+       printf '%s: cannot chdir to base dir "%s"\n' "$0" "$BASE"
+       exit 1
+fi
+
+rsync -avHP --exclude gitk.cache --exclude /next-2'*'/ \
+       --include /next/.git --include /next/.git/'**' --exclude /next/'**' \
+       --include /next-fixes/.git --include /next-fixes/.git/'**' --exclude /next-fixes/'**' \
+       --delete --delete-excluded . "$host":next/.