From b6d85b04286d30498a11aaac36e75032b1e72801 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 10 Jun 2006 18:18:37 +0000 Subject: Added all work so far... git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@2 8f53b18a-e215-0410-8885-9f593d34873e --- 9_resync.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 9_resync.sh (limited to '9_resync.sh') diff --git a/9_resync.sh b/9_resync.sh new file mode 100755 index 0000000..ed2dd13 --- /dev/null +++ b/9_resync.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +. ./config-DEFAULTS || exit 1 +. ./config-HOST || exit 1 +. ./config-TARGET || exit 1 +. ./config-MANDATED || exit 1 +. ./functions || exit 1 + +mount "$rootdev_host" "$mountpoint" +rsync -av --delete --one-file-system "$mountpoint/"* "$targettemp/" --exclude 'etc/shadow*' --exclude 'etc/gshadow*' --exclude 'etc/ssh/ssh_host_*_key*' --exclude 'root/**' --dry-run +'/root:[^:]*/root:' +umount "$mountpoint" -- cgit v1.2.3