9 Scheduling the FTP Uploads
9.3 Batch Job Scheduling of FTP Voyager
a. Sending a file from a local to a remote directory
The section documents the upload of a single file from a local directory to the FTP server.
"c:\Program Files (x86)\RhinoSoft.com\FTP Voyager\FTPVoyager.exe"
profile="Sites.RhinoSoft.Clayton" autoquit=1 -nostartupwizard -nosplash remote=/
put=D:\Tony\SftpTesting\VoyagerTesting\voyagerWork4B.txt logfile=D:\Tony\SftpTesting\logs\Work4.log
Each component of the command line is explained below:
1. "c:\Program Files (x86)\RhinoSoft.com\FTP Voyager\FTPVoyager.exe" -- The full path of the FTPVoyager executable
2. profile="Sites.RhinoSoft.Clayton" – The full name of the Site Profile. It can be found in the upper left hand corner of the main page of the FTP Voyager client after establishing a connection to the FTP server. See snapshot below
ftp://ftp.gadoe.org
For more information, visit: slds.doe.k12.ga.us Page 36 of 41 3. autoquit=1 – Automatically quit FTP Voyager after starting the command line option
4. -nostartupwizard – Disables the initial Startup Wizard 5. –nosplash – Disables the splash screen at startup 6. remote=/ -- Destination path on the FTP server
7. put=D:\SftpTesting\VoyagerTesting\voyagerWork4B.txt – Statement that writes local file to the remote directory
8. logfile=D:\SftpTesting\logs\Work.log – Full path to non-default log file
ftp://ftp.gadoe.org
Local directory before upload
Remote directory after upload of voyagerWork4B.txt
ftp://ftp.gadoe.org
Local directory after upload of voyagerWork4B.txt
For more information, visit: slds.doe.k12.ga.us Page 38 of 41 The section documents how to synchronize data between a remote directory and a local.
"c:\Program Files (x86)\RhinoSoft.com\FTP Voyager\FTPVoyager.exe"
profile="Sites.RhinoSoft.Clayton" autoquit=1 autosync=1 syncoptions=0 nostartupwizard -nosplash remote=/ local=D:\Tony\SftpTesting\VoyagerTesting\
logfile=D:\SftpTesting\logs\Work4.log
Again, each component of the command line is explained below:
1. "c:\Program Files (x86)\RhinoSoft.com\FTP Voyager\FTPVoyager.exe" -- The full path of the FTPVoyager executable
2. profile="Sites.RhinoSoft.Clayton" – The full name of the Site Profile.
3. autoquit=1 – Automatically quit FTP Voyager after starting the command line option 4. autosync=1 – Automatically synchronize the remote directory with the local with different
options
5. syncoptions=0 – Synchronize the remote directory only 6. -nostartupwizard – Disables the initial Startup Wizard 7. –nosplash – Disables the splash screen at startup 8. remote=/ -- Destination path on the FTP server
9. local=D:\Tony\SftpTesting\VoyagerTesting\ -- Local directory
10. logfile=D:\SftpTesting\logs\Work.log – Full path to non-default log file
For more information, visit: slds.doe.k12.ga.us Page 39 of 41
Remote directory before directory synchronization
ftp://ftp.gadoe.org
Local directory before directory synchronization
Remote directory after directory synchronization
ftp://ftp.gadoe.org
Local directory after directory synchronization
For more information, visit: slds.doe.k12.ga.us Page 40 of 41 The log below shows the transaction recorded for the upload of following files – Voyager Client
config.docx, Testscript2.scp and UtilityTest.scp – are uploaded to the remote directory
6/8/2011 12:32:01 AM:>FTP Voyager - Version 15.2.0.15
6/8/2011 12:32:04 AM:>STATUS:> Connecting to "ftp.gadoe.org" on port 22.
6/8/2011 12:32:04 AM:> SSH Server Version: SSH-2.0-Serv-U_10.5.0.14 6/8/2011 12:32:04 AM:> Server --> Client encryption: 192 bit aes-cbc 6/8/2011 12:32:04 AM:> Client --> Server encryption: 192 bit aes-cbc 6/8/2011 12:32:04 AM:> Selected public key protocol: ssh-dss 6/8/2011 12:32:04 AM:> Compression: ZLIB
6/8/2011 12:32:05 AM:>STATUS:> Login successful 6/8/2011 12:32:05 AM:>STATUS:> Getting current folder 6/8/2011 12:32:05 AM:> Current folder: /
6/8/2011 12:32:05 AM:>STATUS:> Setting transfer mode to ASCII 6/8/2011 12:32:05 AM:>STATUS:> Listing contents of: /
6/8/2011 12:32:05 AM:> Listing complete: /
6/8/2011 12:32:05 AM:>STATUS:> Connecting to "ftp.gadoe.org" on port 22.
6/8/2011 12:32:05 AM:> SSH Server Version: SSH-2.0-Serv-U_10.5.0.14 6/8/2011 12:32:05 AM:> Server --> Client encryption: 192 bit aes-cbc 6/8/2011 12:32:05 AM:> Client --> Server encryption: 192 bit aes-cbc 6/8/2011 12:32:05 AM:> Selected public key protocol: ssh-dss 6/8/2011 12:32:05 AM:> Compression: ZLIB
6/8/2011 12:32:06 AM:>STATUS:> Login successful 6/8/2011 12:32:06 AM:>STATUS:> Getting current folder 6/8/2011 12:32:06 AM:> Current folder: /
6/8/2011 12:32:06 AM:>STATUS:> Setting transfer mode to ASCII 6/8/2011 12:32:06 AM:>STATUS:> Listing contents of: /
6/8/2011 12:32:06 AM:>STATUS:> Connecting to "ftp.gadoe.org" on port 22.
6/8/2011 12:32:06 AM:> Listing complete: /
6/8/2011 12:32:06 AM:>STATUS:> Sending: D:\Testscript2.scp -> /Testscript2.scp 6/8/2011 12:32:06 AM:>STATUS:> Setting transfer mode to BINARY
6/8/2011 12:32:06 AM:>STATUS:> Uploading file: /Testscript2.scp
6/8/2011 12:32:06 AM:>STATUS:> Setting date and time of "/Testscript2.scp" to 4/1/2011 12:22:45 AM 6/8/2011 12:32:06 AM:> SSH Server Version: SSH-2.0-Serv-U_10.5.0.14
6/8/2011 12:32:06 AM:> Server --> Client encryption: 192 bit aes-cbc 6/8/2011 12:32:06 AM:> Client --> Server encryption: 192 bit aes-cbc 6/8/2011 12:32:06 AM:> Selected public key protocol: ssh-dss 6/8/2011 12:32:06 AM:> Compression: ZLIB
6/8/2011 12:32:06 AM:>STATUS:> Sent 411 bytes.
6/8/2011 12:32:06 AM:>STATUS:> Transfer time: 00:00:00.203; 1.98 KB/sec 6/8/2011 12:32:06 AM:>STATUS:> Setting transfer mode to ASCII
6/8/2011 12:32:06 AM:>STATUS:> Listing contents of: /
For more information, visit: slds.doe.k12.ga.us Page 41 of 41 6/8/2011 12:32:06 AM:> Listing complete: /
6/8/2011 12:32:06 AM:>STATUS:> Sending: D:\UtilityTest.scp -> /UtilityTest.scp 6/8/2011 12:32:06 AM:>STATUS:> Setting transfer mode to BINARY
6/8/2011 12:32:06 AM:>STATUS:> Uploading file: /UtilityTest.scp
6/8/2011 12:32:07 AM:>STATUS:> Setting date and time of "/UtilityTest.scp" to 5/1/2011 11:55:02 PM 6/8/2011 12:32:07 AM:>STATUS:> Login successful
6/8/2011 12:32:07 AM:>STATUS:> Getting current folder 6/8/2011 12:32:07 AM:>STATUS:> Sent 175 bytes.
6/8/2011 12:32:07 AM:>STATUS:> Transfer time: 00:00:00.203; 862.07 bytes/sec 6/8/2011 12:32:07 AM:>STATUS:> Setting transfer mode to ASCII
6/8/2011 12:32:07 AM:>STATUS:> Listing contents of: / 6/8/2011 12:32:07 AM:> Current folder: /
6/8/2011 12:32:07 AM:>STATUS:> Connecting to "ftp.gadoe.org" on port 22.
6/8/2011 12:32:07 AM:> Listing complete: /
6/8/2011 12:32:07 AM:>STATUS:> Sending: D:\Voyager Client config.docx -> /Voyager Client config.docx
6/8/2011 12:32:07 AM:>STATUS:> Setting transfer mode to BINARY
6/8/2011 12:32:07 AM:>STATUS:> Uploading file: /Voyager Client config.docx 6/8/2011 12:32:12 AM:> SSH Server Version: SSH-2.0-Serv-U_10.5.0.14 6/8/2011 12:32:12 AM:> Server --> Client encryption: 192 bit aes-cbc 6/8/2011 12:32:12 AM:> Client --> Server encryption: 192 bit aes-cbc 6/8/2011 12:32:12 AM:> Selected public key protocol: ssh-dss 6/8/2011 12:32:12 AM:> Compression: ZLIB
6/8/2011 12:32:13 AM:>STATUS:> Setting date and time of "/Voyager Client config.docx" to 6/6/2011 9:11:44 PM
6/8/2011 12:32:13 AM:>STATUS:> Login successful 6/8/2011 12:32:13 AM:>STATUS:> Getting current folder 6/8/2011 12:32:13 AM:> Current folder: /
6/8/2011 12:32:13 AM:>STATUS:> Sent 1,050,199 bytes.
6/8/2011 12:32:13 AM:>STATUS:> Transfer time: 00:00:05.804; 176.70 KB/sec