Using rsync with link-dest from HFS to NTFS
Posted
by
Tom
on Super User
See other posts from Super User
or by Tom
Published on 2010-07-20T13:35:29Z
Indexed on
2010/12/25
16:55 UTC
Read the original article
Hit count: 277
Hi,
I'm having a problem with rsync.
I'm on a Mac and I'd like to sync my everyday's changes from my HFS+ partition to my NTFS formated networked drive.
Pretty simple, and everything goes well except that it syncs every file each times.
Here's my script:
#! /bin/sh
snapshot_dir=/Volumes/USB_Storage/Backups
snapshot_id=`date +%Y%m%d%H%M`
/usr/bin/rsync -a \
--verbose \
--delete --delete-excluded \
--human-readable --progress \
--one-file-system \
--partial \
--modify-window=1 \
--exclude-from=.backup_excludes \
--link-dest ../current \
/Users/tommybergeron/Desktop/Brainpad \
$snapshot_dir/in-progress
cd $snapshot_dir
rm -rf $snapshot_id
mv in-progress $snapshot_id
rm -f current
ln -s $snapshot_id $snapshot_dir/current
Could someone help me out please? I've been searching for like two hours and I still am clueless.
Thanks so much.
© Super User or respective owner