Date: Sat, 10 May 2008 01:53:13 +0200 From: Gilles <gilles.ganault@free.fr> To: freebsd-questions@freebsd.org Subject: Re: [CRON] Recommended FTP client to download and upload files? Message-ID: <aio924lv6a753and8frpovfuskujpdqj2s@4ax.com> References: <9huo14p9l84vmr124kh8j8sjdgerh655cu@4ax.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 03 May 2008 16:46:27 +0200, Gilles <gilles.ganault@free.fr> wrote: >What command-line FTP client would you recommend for this? It looks like lftp is not running like I thought it would :/ Until I ran the following commands manually instead of through CRON, some files on the remote source FTP server dated May 6th/7th were not downloaded locally and then uploaded to the target remote FTP server: 1. Here's the script: # cat /var/sync.bash #!/usr/local/bin/bash echo "Downloading from Source FTP" lftp -u joe,sixpack -e "mirror -vn ./files /var/depot && bye" ftp.source.com echo "Uploading to Target FTP" lftp -u joe,sixpack -e "mirror -vnR /var/depot ./downloads && bye" ftp.target.com 2. When run manually: # ./sync.bash Downloading from Source FTP Total : 1 directory, 41 files, 0 symlinks Uploading to Target FTP Total : 1 directory, 41 files, 0 symlinks To be removed: 0 directories, 2 files, 0 symlinks 3. CRON: # crontab -l 5,35 * * * * /var/sync.bash >/dev/null 2>&1 => What does "To be removed: 0 directories, 2 files, 0 symlinks" actually mean? Thanks for any tip.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aio924lv6a753and8frpovfuskujpdqj2s>