diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/sync-tpc | 9 |
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 |