|
Copy to New Job Version:
It is very unusual to change this value at all.
Encryption
Be especially careful when using delete task as you could delete the original and copy.
Get mail refresh token Learn more: SMTP Google Mail Integration Get Refresh Token Learn more: OneDrive/Sharepoint Setup
Example: If the command was "cp" and the argument was "{real_path};/archive/{name}"
Then, if a file was uploaded to "/uploads/stuff.zip", it would be copied to "/archive/stuff.zip"
Note the purpose of the ";" (semicolon) in that, it separates arguments to the command.
If an item matches the filter, it will be excluded from the future task processing.
The filter is based on the entire URL, not just the name. To filter by name, use enough unique info from the URL so you can match the name at the end. Example: file://files/folder1/abc_folder/abc.txt using a filter of "*/abc*" would match all items in that folder. Using "*/abc_folder/abc*"would match just this item.
Leave both fields blank to always be a true condition.
Jump using if/else logic passing all items if there is any true result instead of passing just the true items to the true
task, and just the false items to the false task.
Get mail refresh token Learn more: SMTP Google Mail Integration Get Refresh Token Learn more: OneDrive/Sharepoint Setup
Request this file be processed by the Preview function in the CrushFTP prefs.
tar and tar.gz are also supported formats. They will be handled if the extension of the file is either .tar or .tar.gz
tar and tar.gz are also supported formats. They will be handled if the extension of the file is either .tar or .tar.gz
DB driver jar files are no longer dynamically loaded. They must be present in the CrushFTP folder/plugins/lib folder at
startup time to be available for usage. if you see a ClassNotFound error, please ensure you have the driver jar files copied
to that folder and restart CrushFTP.
Browse
Parameters: Add Parameter
This class needs to extend the "tasks.Task" class from the CrushTask.jar file in your plugins folder.
Example task:
package tasks;
import java.util.Properties;
import java.util.Vector;
public class BreakpointTask extends Task
{
public BreakpointTask(Properties prefs, Vector items, Properties info, Vector threads)
{
super(prefs, items, info, threads);
}
public Task go()
{
run();
return null;
}
public void run()
{
try
{
newItems.addAll(items);
tracker.put("status", "paused");
CrushTask.Start.checkStatus(tracker, this);
}
catch (Exception e)
{
error = e;
msg(e);
log(false, e.toString(), null);
}
}
}
Variables can be used for filenames, as part of an email address, email body, subject, or event as part of the command for the
Execute task.
Here is an example of what you might use this plugin for.
When files are uploaded to your server, you want them backed up to another server, and an email notification sent out letting someone know about the files on the alternate server. So here are the tasks: MakeDirectory: filter=* /archived_{MM}{dd}{yy}/ Copy: filter=* destination:ftp://myuser:pass@192.168.1.65/newFiles/ Move: filter=* destination: /archived_{MM}{dd}{yy}/ Email: filter=*192.168.1.65* |