Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Disk image weirdness

Disk image weirdness
Thread Tools
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Aug 3, 2004, 11:13 PM
 
I've been working on an app called iPodBackup lately, and the last feature I implemented was backing up to a sparse disk image. However, I've been having a problem.

When backing up to a disk image, rsync reports numerous symlink errors, and it re-copies lots of files that haven't changed since the last backup. The disk image is an unencrypted, sparse HFS+ volume with volume name "$USER Backup", so in my case it ends up being at "/Volumes/amake Backup". Here's an example of a symlink error:
chown "/Volumes/amake Backup/.kde/socket-Yuki.local" failed: No such file or directory
Also, the files that get re-copied aren't weird system files or anything like that. They're just regular old directories (but not their contents, apparently), such as a whole bunch of things in my iPhoto Library.

When backing up to a regular disk (in this case my iPod), I don't get any symlink errors, and only the files that I know have changed since the last backup get re-copied (prefs of open apps, etc.).

Are there any intrinsic differences between real disks and disk images that aren't obvious? What am I missing here?
     
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Aug 4, 2004, 02:11 PM
 
There shouldn't be a difference AFAIK, but as a general rule, if you can, avoid path names with spaces.
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
     
wataru  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Aug 4, 2004, 02:14 PM
 
Since so many paths used in the program could have spaces, I've been sure to account for that. Thanks for the tip, though.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2