Find local files and copy them to remote servers.
#
I configured a VFS pointing to a legacy FTP server in the User Manager VFS.

Then I created a new job in the Jobs tab to perform a test against this scenario.
First step is to find a file so we have it for our collection.

I first sent a file directly to the server bypassing a loopback through the internal VFS (you loose event notifications doing this.)

Then I forwarded the file through my internal VFS that points to the legacy server running somewhere else.

Next I wait for the prior two multi threaded jobs to complete the sending of the files.

Then I send an email receipt confirming the files were sent.

Last is the running of the job and its results.

And the full log trail for this job.
06/11/2012 23:18:36:tasks.Task.:CrushTask items size=0 06/11/2012 23:18:36:tasks.FindTask.Find files in local folder:Starting... 06/11/2012 23:18:36:Check1:true 06/11/2012 23:18:39:Check2:true 06/11/2012 23:18:39:Added:true 06/11/2012 23:18:39:tasks.FindTask.Find files in local folder:Added:MB8.txt 06/11/2012 23:18:39:tasks.CopyTask.Copy files to partner a:Starting... 06/11/2012 23:18:39:tasks.CopyTask.Copy files to partner b:Starting... 06/11/2012 23:18:39:tasks.WaitTask.Wait:Starting... 06/11/2012 23:18:39:tasks.WaitTask.Wait:waiting 1 seconds. 06/11/2012 23:18:40:tasks.WaitTask.Wait:waiting for existing threads to finish. 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner a:attempting copy (1) file:/A_TestFiles/MB8.txt to ftp://demo:demo@ftp.crushftp.com/demo/MB8.txt 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:attempting copy (1) file:/A_TestFiles/MB8.txt to ftp://filezilla:filezilla@127.0.0.1:2121/MB8.txt 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:220-Ben's Dev Server2 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:220 CrushFTP Server Ready! 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:USER filezilla 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:331 Username OK. Need password. 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:PASS filezilla 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:230 Password OK. Connected. 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:FEAT 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:211-Extensions supported: 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:AUTH TLS 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:AUTH SSL 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SSCN 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:PBSZ 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:PROT 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:CCC 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:CLNT 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:EPSV 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:EPRT 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:MDTM 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:MDTM YYYYMMDDHHMMSS[+-TZ];filename 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:MFMT 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SIZE 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:REST STREAM 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:MODE Z 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:LIST -Q 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SITE UTIME 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SITE MD5 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SITE MD5s 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:SITE RANDOMACCESS 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:MLST Type;Size;Modify;Perm;Unique;UNIX.owner;UNIX.group; 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:UTF8 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:211 END 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:MODE Z 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:200 MODE Z ok 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:OPTS UTF8 ON 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:200 UTF8 OPTS ON. 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:SYST 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:215 UNIX Type: L8 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:TYPE I 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:200 Command ok : Binary type selected. 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:PASV 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:227 Entering Passive Mode (127,0,0,1,149,111) 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:PUT:STOR /MB8.txt 06/11/2012 23:18:41:tasks.CopyTask.Copy files to partner b:OUT:GOT:150 Opening BINARY mode data connection. Ready to write file . "/MB8.txt") S T O R 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:220-Welcome to CrushFTP4! 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:220 CrushFTP Server Ready! 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:USER demo 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:331 Username OK. Need password. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:PASS demo 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:230 Password OK. Connected. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:FEAT 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:211-Extensions supported: 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:AUTH TLS 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:AUTH SSL 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SSCN 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:PBSZ 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:PROT 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:CCC 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:CLNT 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:EPSV 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:EPRT 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:MDTM 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:MDTM YYYYMMDDHHMMSS[+-TZ];filename 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:MFMT 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SIZE 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:REST STREAM 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:MODE Z 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:LIST -Q 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SITE UTIME 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SITE MD5 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SITE MD5s 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:SITE RANDOMACCESS 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:MLST Type;Size;Modify;Perm;Unique;UNIX.owner;UNIX.group; 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:UTF8 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:211 END 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:MODE Z 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:200 MODE Z ok 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:OPTS UTF8 ON 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:200 UTF8 OPTS ON. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:SYST 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:215 UNIX Type: L8 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:MKD / 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:550 Access not allowed. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:MKD /demo 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:521 "/demo" already exists. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:TYPE I 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:200 Command ok : Binary type selected. 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:PASV 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:227 Entering Passive Mode (68,238,144,61,80,235) 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:PUT:STOR /demo/MB8.txt 06/11/2012 23:18:44:tasks.CopyTask.Copy files to partner a:OUT:GOT:150 Opening BINARY mode data connection. Ready to write file . "/demo/MB8.txt") S T O R 06/11/2012 23:18:46:tasks.CopyTask.Copy files to partner a:OUT:GOT:226-Upload File Size:8388608 bytes @ 8192K/sec. MD5=79fc7f7da7252f30974f405213a7afa6 06/11/2012 23:18:46:tasks.CopyTask.Copy files to partner a:OUT:GOT:226 Transfer complete. MD5=79fc7f7da7252f30974f405213a7afa6 ("/demo/MB8.txt" 8388608) STOR 06/11/2012 23:18:46:tasks.CopyTask.Copy files to partner a:copy finished:file:/A_TestFiles/MB8.txt 06/11/2012 23:18:46:true 06/11/2012 23:18:50:tasks.CopyTask.Copy files to partner b:OUT:GOT:226-Upload File Size:8388608 bytes @ 1011K/sec. MD5=79fc7f7da7252f30974f405213a7afa6 06/11/2012 23:18:50:tasks.CopyTask.Copy files to partner b:OUT:GOT:226 Transfer complete. MD5=79fc7f7da7252f30974f405213a7afa6 ("/MB8.txt" ) STOR 06/11/2012 23:18:50:tasks.CopyTask.Copy files to partner b:copy finished:file:/A_TestFiles/MB8.txt 06/11/2012 23:18:50:true 06/11/2012 23:18:50:true 06/11/2012 23:18:50:tasks.EmailTask.Email Receipt:Starting... 06/11/2012 23:18:50:tasks.EmailTask.Email Receipt:to:ben@crushftp.com cc: bcc: 06/11/2012 23:18:50:tasks.EmailTask.Email Receipt:from:ben@crushftp.com 06/11/2012 23:18:50:tasks.EmailTask.Email Receipt:subject:Files delivers to customers 06/11/2012 23:18:50:tasks.EmailTask.Email Receipt:body:The following files were uploaded to both partner A and B. <br> <br> MB8.txt<br> 06/11/2012 23:18:56:tasks.EmailTask.Email Receipt:email results:Success! 06/11/2012 23:18:56:true
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
png |
jobs1.png | 71.8 kB | 3 | 28-Apr-2022 11:49 | Sandor | |
png |
jobs2.png | 31.8 kB | 3 | 28-Apr-2022 11:49 | Sandor | |
png |
jobs3.png | 33.9 kB | 3 | 28-Apr-2022 11:49 | Sandor | |
png |
jobs4.png | 32.4 kB | 3 | 28-Apr-2022 11:49 | Sandor | |
png |
jobs5.png | 12.0 kB | 4 | 28-Apr-2022 11:50 | Sandor | |
png |
jobs6.png | 32.4 kB | 2 | 28-Apr-2022 11:50 | Sandor | |
png |
results.png | 117.2 kB | 2 | 28-Apr-2022 11:51 | Sandor | |
png |
results.png.png | 117.2 kB | 1 | 28-Apr-2022 11:50 | Sandor | |
png |
vfs.png | 118.1 kB | 4 | 28-Apr-2022 11:51 | Sandor |
«
This particular version was published on 29-Dec-2020 05:25 by Halmágyi Árpád.
G’day (anonymous guest)
Log in
JSPWiki