Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old May 10, 2011, 01:20 PM   #1
tommekevda
macrumors newbie
 
Join Date: Oct 2010
Problems with Rsync and iPhoto library

Hello everyone,

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.
iPhoto Library/.ipspot_update
16 100% 0.00kB/s 0:00:00 (xfer#1, to-check=1030/1032)
iPhoto Library/AlbumData.xml
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
Code:
#/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.
tommekevda is offline   0 Reply With Quote
Old May 11, 2011, 04:28 AM   #2
tommekevda
Thread Starter
macrumors newbie
 
Join Date: Oct 2010
i've already received some feedback from another source.
They believe that iLife Media browser blocks the file. can anyone confirm?
Btw, i'm using rsync 3.0.7
tommekevda is offline   0 Reply With Quote
Old May 19, 2011, 10:50 AM   #3
dyn
macrumors 65816
 
Join Date: Aug 2009
Location: .nl
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.
dyn is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Tags
rsync iphoto problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhoto Library size problems cderalow Mac Applications and Mac App Store 4 Oct 16, 2013 12:11 PM
Aperture: library across multiple drives & unified iPhoto library roland.g Digital Photography 5 Oct 13, 2013 11:41 PM
Holding Option When Opening iPhoto, Attempting to open iPhoto Library Does Nothing. HappyDude20 Mac Applications and Mac App Store 2 Mar 19, 2013 01:02 AM
Moving iPhoto '08 library into external hard drive: library moves, photos don't dizrythmia Mac Applications and Mac App Store 13 Jan 12, 2013 10:00 PM
Help!! Problems with new Aperture & iPhoto library nealeholl Mac Applications and Mac App Store 3 Jul 2, 2012 09:16 AM

Forum Jump

All times are GMT -5. The time now is 04:16 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC