Your best friend for file transfer.

Fetch application logoFetch

help please with mirroring and script (8 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 19 years ago by ebernard
  • Latest reply 19 years ago from Jim Matthews
  • ebernard Member

    I am trying to back up Eudora mail files that have been modified each day. The files need to go up as either BinHex or Mac Binary.

    The first problem is that when I choose the mirror command, I cannot find a place there to select the file format.

    So I tried to record and edit a script, which I will need anyway, as I have to automate this eventually. When I run the script, all the files get uploaded, not just the latest ones. I have seen messages about this for older versions, but not for recent versions. Here is my script (the x's are just to block out passowrds):

    tell application "Fetch 4.0.3"
    activate
    make new transfer window at beginning with properties {hostname:"ftp.daphne-rome.com", userid:"xxxx@aruba.it", password:"xxxx"}
    open remote directory "/daphne-rome.com/mailboxes"
    mirror alias "Macintosh HD:Users:alessandrobisceglie:Documents:Eudora Folder:Mail Folder:" to url "ftp://xxxx%40aruba.it:@ftp.daphne-rome.com/daphne-rome.com/mailboxes" format MacBinaryIII without delete strays
    quit
    end tell

    I do not know how to script. This was recorded and slightly modified to change the format. Thanks in advance for your help!

    Elyssa

    Posted 19 years ago #

  • Jim Matthews Administrator

    Your script looks correct. Fetch will try to only upload files that have a newer modification date on your Mac than on the server. If it is uploading files that you think it shouldn't could you choose "Fetch Transcript" from the Remote menu and post the contents? Also post the name of the file that you think should not have been mirrored, and the modification date of that file as shown by the Finder on your Mac.

    If you'd rather not post your transcript to the message board you can send it to bugs at fetchsoftworks.com.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • ebernard Member

    Thanks for your quick response. Here is part of the transcript:

    226 Transfer ok
    MDTM TO DO.bin
    550 'TO DO.bin' : no such file or directory.
    TYPE I
    200 Type set to I.
    PASV
    227 Entering Passive Mode (62,149,130,76,195,85).
    STOR TO DO.bin
    150 Data connection accepted from 81.208.60.199:20818; transfer starting for TO DO.bin.
    226 File received ok.
    Upload complete at 5/10/04 9:06:06
    MDTM bookings - AnneRobichaud.bin
    550 'bookings - AnneRobichaud.bin' : no such file or directory.
    MDTM bookings - travel agent.bin
    550 'bookings - travel agent.bin' : no such file or directory.
    PASV
    227 Entering Passive Mode (62,149,130,76,195,132).
    STOR bookings - travel agent.bin
    150 Data connection accepted from 81.208.60.199:20989; transfer starting for bookings - travel agent.bin.
    226 File received ok.
    Upload complete at 5/10/04 9:06:13
    (This is where I told it to stop.)

    Basically, it looks like it is not even recognizing existing files, even though they are there.

    Also my script times out, but I don't anticipate it having to take so long once I can get it to just upload changed mailboxes.

    Thanks,

    Elyssa

    Posted 19 years ago #

  • Jim Matthews Administrator

    Fetch is uploading (for example) the file "TO DO.bin" because when Fetch asks for the modification date of that file on the server the server says that there's no such file. But you believe that the "TO DO.bin" file is already on the server before you run the mirror script?

    Do you know what kind of server it is?

    You can deal with the timeout error by putting this line before the make new transfer window line:

    with timeout of 3600 seconds

    and this line after the mirror line:

    end timeout

    You can adjust that timeout if you need more than one hour.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • ebernard Member

    Thanks for the help with the timeout problem. As for the server, it is aruba.it, based here in Italy. According to their web site, they use Windows 2003 server with IIS 6. Is that what you mean?

    If I log on to our space on aruba using Fetch on the Mac or even another FTP program using Windows (I have a Dell at home), I can see the files there.

    Hope this is clear. Please let me know what you think,

    Elyssa

    Posted 19 years ago #

  • Jim Matthews Administrator

    It could be that the files are there but the server does not support the MDTM and SIZE commands. Could you post the entire transcript after a mirror attempt (or email it to bugs at fetchsoftworks.com)?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • ebernard Member

    Hello Jim,

    I tried to send the transcript to bugs@fetchworks.com, but it came back to me. Where should I send the email? I don't mind posting the transcript here, but it's long.

    Thanks,

    Elyssa

    Posted 19 years ago #

  • Jim Matthews Administrator

    The domain name is fetchsoftworks.com, not fetchworks.com.

    I try to avoid posting complete email addresses here because they will be harvested by spammers, and I already get thousands of junk messages a day.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

Topic closed

This topic has been closed.