|May 10, 2011, 01:20 PM||#1|
Problems with Rsync and iPhoto library
I'm trying to backup my iPhoto library with rsync to an airdisk.
I'm having some problems, the backup doesn't seem to go anywhere.
it stays frozen on this.
After more then 1 hour, still the same.
16 100% 0.00kB/s 0:00:00 (xfer#1, to-check=1030/1032)
32768 0% 138.53kB/s 0:01:32
According to activity monitor there's minimal network activity going on.
i don't know what i'm doing wrong.
There's the script i use.
oh and i only want to copy data from my mac to my airdisks, so just 1 way sync, not 2 way
#/bin/bash echo "Checking if MacBackup airdisk local directory is available" if [ -d /Volumes/MacBackup/ ]; then echo "No need to create local directory in /Volumes" else echo "Local directory not available, creating..." mkdir /Volumes/MacBackup/ fi if [ ! -f /Volumes/MacBackup/available.txt ]; then echo "Mounting MacBackup airdisk" mount -t afp afp://username:password@ip/MacBackup /Volumes/MacBackup disktool -r fi #Backing up iPhoto library if [ -f /Volumes/MacBackup/available.txt ]; then echo "Backing up iPhoto Library" rsync -avz --delete --exclude '.DS_Store' --stats --progress ~/Pictures/iPhoto\ Library /Volumes/MacBackup/autobackup/ else echo "MacBackup airdisk not available" #exit(1) fi if [ -d /Volumes/NightAirDisk/ ]; then echo "No need to create local directory in /Volumes" else echo "Local directory not available, creating..." mkdir /Volumes/NightAirDisk/ fi if [ ! -f /Volumes/NightAirDisk/available.txt ]; then echo "Mounting NightAirDisk airdisk" mount -t afp afp://username:password@ip/NightAirDisk /Volumes/NightAirDisk disktool -r fi #Backing up truecrypt containers if [ -f /Volumes/NightAirDisk/available.txt ]; then echo "Backing up truecrypt containers from NightAirDisk" #Put backup script here rsync -av --delete --exclude '.DS_Store' --stats --progress /Volumes/NightAirDisk/Tom/tc /Volumes/MacBackup/autobackup/ else echo "NightAirDisk airdisk not available" #exit(1) fi
Last edited by tommekevda; May 11, 2011 at 04:26 AM.
|May 19, 2011, 10:50 AM||#3|
I don't think that is correct. I managed to somewhat sync my iPhoto library. At the end it said it had some errors but it seemed to be referring to something in rsync itself, not the data I was syncing. I haven't noticed any file holding up the syncing process. The .ipspot_update file has synced without any problems whatsoever in my case. The only difference is that I'm using SMB/CIFS instead of AFP and my rsync command is: rsync -azvuhE --progress <src> <dest. I use -u because I don't want it to transfer everything, only files that are changed. The -E is for keeping the extended attributes, resource forks and ACLs (which is also intended). The -v and -h are used because I'm running it manually so I want to see and read what is happening. One other major difference: I'm using the rsync version that came with OS X and it is 2.6.9 (protocol version being 29).
Could you try running the command manually and see what happens?
Btw, disktool isn't used anymore so that will do nothing. You need to use diskutil instead.
Edit: found the problem. On one machine the -E caused mds to go mad (135% cpu usage) and on both machines it caused the error regarding rsync. Without the -E everything works properly, no errors and it is even faster. In short: use the parameters I used but loose the -E!
Last edited by dyn; May 19, 2011 at 12:23 PM.
|rsync iphoto problem|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iPhoto Library is gone since Lion||jwesty5||Mac OS X 10.7 Lion||8||Apr 9, 2013 09:53 AM|
|Shared iPhoto Library, thumbnails not visible||nielssiem||Mac Applications and Mac App Store||2||Oct 12, 2011 03:34 PM|
|Moved My iPhoto Library...Help||soundguy15||Mac Applications and Mac App Store||15||Aug 1, 2011 10:48 PM|
|Is it safe to delete my iPhoto library?||MrFluffums||Mac Applications and Mac App Store||3||Apr 12, 2011 08:01 PM|
|Odd problem with Automater and iPhoto||Dr. Dastardly||Mac Applications and Mac App Store||1||Jun 23, 2005 03:44 AM|
All times are GMT -5. The time now is 11:14 PM.