Backing up to remote AIX server ...
Backing up to remote AIX server ...
- Subject: Backing up to remote AIX server ...
- From: Dave Stewart <email@hidden>
- Date: Thu, 28 Aug 2003 16:16:22 -0700
Hey folks!
I think I finally hit yet another stumbling block that I can't get
around. Hopefully many people in here will give a helping hand (I need
right hands more than left ones! LOL)
I found an applescript that tries to backup your home directory and
figured that was a good place to start hacking and slashing together a
script to backup my projects onto a remote AIX server. What I've ended
up with doesn't quite work. The relevant points of the script are as
follows:
set backupFolder to "backup" -- directory on remote AIX server where
I'm trying to backup to
set backupVolume to "/u" -- The root directory of this drive AND it's
volume name, should the slash be here? Tried with and without ...
set networkMacName to "rusty" -- defined in /etc/hosts to access the
AIX server in question
set networkVolume to "Picard(X)" -- the partition of my local hard
drive, containing the directory I wanna backup
set networkUsername to "user_name" -- changed to protect the innocent
set networkPassword to "my_password" -- changed to protect *ME*
set networkUser to "Private" -- local directory I wanna backup,
normally will be "Projects" but that's big for testing ;-)
--I have this funny feeling this has something to do with the problem,
--but I don't know enough to figure it out on my own (despite a few
futile attempts)
mount volume "
ftp://" & networkUsername & ":" & networkPassword & "@" &
networkMacName
--snip inane processing to get to the heart of the matter ...
tell application "Finder"
--snip more unimportant stuff ...
set error_msg to "Failed to copy the " & networkUser & " home
directory for " & today & "'s backup. Make sure you have proper file
permissions by copying your data manually."
copy ,
folder networkUser of folder "Developer" of disk networkVolume ,
to folder ThisDayFolder of folder backupFolder of folder
networkUsername of disk backupVolume
-- to home
-- ThisDayFolder is built in the snipped parts, simply by appending
"BU" to the end of the day
on error
display dialog error_msg buttons "OK" default button "OK" with icon
caution
end tell
If I remove the commented line which causes the copy to copy to my home
directory and comment out the one I want to work, that works fine (it
will copy to my home). I just don't see the point of copying the
directories around the same partition of the same hard drive and would
like to copy it to the remote machine. Each time I try, I get the error
dialog telling me it didn't work (specifically, it's the error_msg
that's displayed, which tells me the copy is throwing the error).
I've double checked the directory structure and it looks fine.
ThisDayFolder (ThursdayBU today, FridayBU tomorrow ...) resides inside
the "backup" directory, which resides inside "user_name", which resides
inside volume "u" on the server.
I've tried mounting the AIX server with the following protocols:
afp gives me an error on the mount line (error of type -1, whatever
that means. I guess it means it didn't work:)
ufs gives me an error on the mount line (error of type -36, which
again means to me "this doesn't work":)
(Actually, there were a couple of others that I don't remember
immediately, I started grasping for straws at one point and tried ftp,
which does mount the volume.)
So, can anyone tell what I have done wrong?
Particulars:
Smile 2.5.2
AppleScript 1.9.1
System Events 2.0? (gooey scripting enabled, but shouldn't matter here
since I'm not using it here)
OSX 10.2.6
December '02 Developer Tools
Connecting to an AIX Version 4 server
PS: Also would like to know the virtual key codes for the <F3> and <F4>
keys, for a totally unrelated project.
Dave Stewart
Aqua-flo Supply (Goleta)
email@hidden
An ASCII character walks into a bar. Bartender asks, "What'll you
have?" ASCII character says, "Give me a double." Bartender asks,
"Having a bad day?" ASCII character says, "Yeah, I have a parity
error." Bartender says, "Hmmm. I thought you looked a bit off."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.