Subject: Re: Apple Double?
From: Philip Bertuglia (pbertugl@wheatonma.edu)
Date: Fri Apr 07 2000 - 12:22:24 EDT
Procedure for converting old .AppleDouble files.
1. Build a temporary server and install the old version of netatalk on it
2. Stop netatalk on the production box running the old version of netatalk
and install the latest version.
Do not allow any use of your normal netatalk shares until this is done.
3. mount a separate external HD on your scsi chain (if you can)
OR create a directory on a partition big enough to hold all of the
.AppleDouble files you need to convert
4. copy all of the .AppleDouble directories to this external HD or new
directory
I used:
find /usr2 /usr3 -type d -name .AppleDouble -exec cp -a -P {}
/mnt/appledouble_old \;
5. mount this HD on the temporary system or ftp this directory onto the
temporary server from step 1.
6. on the temp server, touch files of the same name as the .AppleDouble
files, one directory higher than the .AppleDouble directory itself. I used:
find /mnt/appledouble/usr3/ /mnt/appledouble/usr2 -type f -fprint
/tmp/files_to_touch
then
sed s/"\\.AppleDouble"/./ /tmp/files_to_touch > /tmp/infile
then
./touch_these < /tmp/infile
++++ BEGIN ./touch_these ++++++
#!/bin/bash
while [ 1 ]
do
read FILE
if [ -z "$FILE" ]
then
echo done.
exit 0
fi
touch "$FILE"
done
++++ END ./touch_these ++++++++
7. setup a netatalk share called NEW and OLD on the production box running
the latest version of netatalk and the temp server running the old version
of netatalk respectively. The NEW share should mount to an empty directory
that has enough room for all of the .AppleDouble files and the zero length
data files (they do use up a block).
8. with a fast Mac client, drag the contains of the OLD share into the NEW
share.
9. replace the .AppleDouble files with the one you just created one the
production box. I used:
cd /mnt/appledoublenew <----- this is the mount point of my NEW share
find ./usr2 ./usr3 -type d -name .AppleDouble -exec cp -v -R -P {} / \;
10. setup all of your old shares on you production box and restart netatalk.
DONE
If you have any question please feel free to ask.
Philip Bertuglia
Systems Administrator
Wheaton College
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:30:26 EST