#!/bin/bash # synchronize LOTRO updates from NTFS partition to linux copy # # to be used after the game has been patched under windows # while the patching does not work under linux # # (C) 2007 SNy # # # v0.1 2007-11-11 initial version # change these settings here to match your system DEV=/your/ntfs/gaming/partition/here MNT=/mnt SRC="Lord of the Rings Online" DEST="/path/to/LOTRO" USR=yourUsername GRP=yourGroup # don't change the stuff below, it does the syncing mount -tntfs -oro $DEV $MNT rsync -rtuv "$MNT/$SRC/" "$DEST/" find "$DEST/" -type f -exec chown $USR.$GRP {} \; umount $MNT