aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/sync-tpc9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index 5b990bb..a785fb9 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -33,10 +33,11 @@ for folder in /mnt/crypt/home/*; do
done
# Sync files
-$SUDO $RSYNC /home/ $DEST/home/
-$SUDO $RSYNC /var/cache/pbuilder/ $DEST/var/cache/pbuilder/
-$SUDO $RSYNC /var/chroot/ $DEST/var/chroot/
-$SUDO $RSYNC /var/lib/wicd/ $DEST/var/lib/wicd/
+for folder in /home /var/cache/pbuilder /var/chroot /var/lib/wicd; do
+ if [ -d "$folder" ]; then
+ $SUDO $RSYNC $folder/ $DEST/$folder/
+ fi
+done
# Network config
$SUDO cp -a /etc/network/interfaces $DEST/etc/network/interfaces