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