QAPete
08-05-2001, 07:00 PM
Hello, all, I'm hoping someone can help me out with a script I'd like to write to do some automatic mirroring with mirrordir (http://mirrordir.sourceforge.net).
Here's the scenario:
I want to log into a site (ftp://username :password@ftpsite.com), cd to the appropriate directory (let's call it sourcedir1) copy all new files to my /www/files/localdir1, then proceed to do the other 7 folders that are on the same directory tree level as sourcedir1. There are some dirs on the remote machine that I do not wish to mirror.
Copydir (part of mirrordir) can handle the copying and has the appropriate switches to not download corrupted files, etc., but I don't know how to get the sequence of events right in a script that I can later cron.
Appreciate any help you guys can give me, even other methodologies for doing this. This is my first post in this forum, so I'm anxious to see what kind of help is really available here.
Pete
Here's the scenario:
I want to log into a site (ftp://username :password@ftpsite.com), cd to the appropriate directory (let's call it sourcedir1) copy all new files to my /www/files/localdir1, then proceed to do the other 7 folders that are on the same directory tree level as sourcedir1. There are some dirs on the remote machine that I do not wish to mirror.
Copydir (part of mirrordir) can handle the copying and has the appropriate switches to not download corrupted files, etc., but I don't know how to get the sequence of events right in a script that I can later cron.
Appreciate any help you guys can give me, even other methodologies for doing this. This is my first post in this forum, so I'm anxious to see what kind of help is really available here.
Pete