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 > Mac OS X > Backup to Win2k w/resource forks - Group Project

Backup to Win2k w/resource forks - Group Project
Thread Tools
Registered User
Join Date: Jan 2001
Location: Goddard, Kansas, USA
Status: Offline
Reply With Quote
Sep 5, 2003, 02:38 PM
 
I previously posted a question to the boards about backing up to a Win2k machine http://forums.macnn.com/showthread.p...hreadid=173390

After a few responses I discovered the way I was doing it was a bad idea. Hence this post.

I am trying to write a script that does the following. Any help would be appreciated.

I have finished some of it, but there are a few things really puzzling me. Please take a look and give me some hints. Maybe it will help others as well.

1) Create Image

hdiutil create -fs HFS+ -ov -volname "iPhoto Backup" -size 10m /Volumes/Stuff/Users/admin/Desktop/."iPhoto Backup".dmg

2) Mount Image

HELP PLEASE

3) Copy iPhoto Library to Mounted Image

cp -R -H -p /Volumes/Stuff/Users/admin/Pictures /Volumes/"iPhoto Backup"

## I keep getting the message that it can't copy the files.

4) Unmount Image

HELP PLEASE

5) Copy Disk Image to SMB Volume

cp /Volumes/Stuff/Users/admin/Desktop/."iPhoto Backup".dmg /Volumes/BACKUP2

6) Delete Local Disk Image

rm /Volumes/Stuff/Users/admin/Desktop/."iPhoto Backup".dmg

Please be kind, I am new to the command line and would eventually like to turn this into a shell script/cron job???? I think that is what I would want.

Chris
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 5, 2003, 04:56 PM
 
Found this on google.

Excerpt from http://www.id02.com/article/45_0_1_0_C/

Create a blank, sparse, stretchable disk image:
A stretchable disk image can be resized later on if you decide you need greater capacity.
hdiutil create /aaa.sparseimage -volname aaa -size 80g -fs HFS+ -layout NONE -stretch 512g

Mount the disk image:
hdid -nomount /aaa.sparseimage
mkdir /Volumes/tempMountPoint
mount -t hfs /dev/disk0s9 /Volumes/tempMountPoint
disktool -r
sudo vsdbutil -a /Volumes/tempMountPoint

Duplicate a volume to the disk image:
sudo ditto -rsrcFork /Volumes/Macintosh/Applications /Volumes/tempMountPoint/Applications
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Sep 6, 2003, 08:14 AM
 
I do not recommend using images over a network. I consistently had lockups trying to create an image larger than 2 gig on my Win2k box. Rather opt for psync (a brother of rsync that is able to deal with resource forks) and -- if possible -- a un*x computer. I have set up an old P200 running FreeBSD as a backup server. works beautifully. Plus, for a lot of stuff, you don't need resource forks (e. g. my .mp3 collection).
I don't suffer from insanity, I enjoy every minute of it.
     
cshuman  (op)
Registered User
Join Date: Jan 2001
Location: Goddard, Kansas, USA
Status: Offline
Reply With Quote
Sep 6, 2003, 08:57 AM
 
I've been using PsyncX, but when I transfer to Win2k I lose so much.

I have had the same problems creating an image on the Win machine. That is why I am trying to create this script. It will actually create the image on my mac, copy the files to the image, send the image to Win, then delete the local copy.

Is "plain" psync something like PsyncX? Will aid in writing the script?

Thanks Oreo

Scarpa,
I am still having trouble seeing the images mounted on the desktop. Am I confused? Is it unnecessary to actually see it mounted on the desktop?

Chris
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Sep 6, 2003, 09:40 AM
 
Originally posted by cshuman:
I am still having trouble seeing the images mounted on the desktop. Am I confused? Is it unnecessary to actually see it mounted on the desktop?

Chris
Correct, you do not need to see it mounted on the desktop. That is a Finder issue, and has little to do with the image actually being mounted in the filesystem.
     
   
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 10:22 AM.
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