Support > Administrator's guide (R7) > File move job
ja | en

You can move a specific file (or folder).

By using the file migration job, you can move files (group) periodically to another drive.

Figure 1 Job settings
Before doing this setting,Prepare job execution accountplease.
  1. Log on with an account with administrator privileges.
  2. Open the "Job Management" "Job Schedule Search" screen from the menu.
  3. Click the "Register Screen" button to register a new job schedule.
  4. Select "MoveFile" from the job name."File move" is displayed in the explanation column below that.
  5. Write job parameters.[To be described later]
  6. Specify scheduleTo do.
  7. Check the "valid" flag.
  8. Enter the account and password to run this job.Job execution account setting is "Preparation: Enable job execution accountPlease read.
  9. Register the job schedule.The job will be executed at the specified time.

You can specify more than one parameter to specify for the job. The parameters that can be specified here are as follows.

Parameter name Required Description Description example
src Specify the source folder (or file).The starting folder is "wagbyapp \ bin". To specify a log folder
..\logs
When specifying an export folder
..\..\export
dest Specify the destination folder (or file).The starting folder is "wagbyapp \ bin". D:\backup
override If there is a file with the same name in the destination, specify whether to overwrite.Default is true. true
mdate Target files that have passed the specified number of days since the last update.In the format, I write numbers directly. 7 (Files that * 7 days passed)
mtime We will target files that have passed since the last update since the specified time.The format can be HH: mm or HH: mm: ss.When used with mdate, mtime takes precedence. 3:00 (※ 3 hours have passed)
wildcard Specify the target file with the wildcard specification. * .log (It targets files whose ending is "log")
exclude Files matched by regular expressions are excluded.Multiple patterns can be specified by specifying exclude 1, exclude 2, ... with numbers at the end. . * Zip $ (Do not exclude files ending in "zip")
maintenance When executing this job, specify whether to switch to maintenance mode.Default is "true" (maintenance mode is applied). false
maintenanceOption Specify how to respond to the account that was logged on when switching to maintenance mode.[Optional] Logout: Force logout of the account logged on before job execution.
Fail: If there is an account logged on before job execution, cause the job to fail.
(Default): Switch the mode while leaving the logged on account unchanged.
debug When starting the job, record the parameter list, the processing target file, and the name of the error file in the log.To enable it, write it as true.(The default is false.) true
The mdate, mtime, and exclude specifications are applied to the target file or the target folder of the first hierarchy.All files and folders contained in the target folder are subject to compression.
The execution result of the job is described in the log file (system.log).
If more than one parameter with the same name is defined, the last parameter is valid.

Specification rules for source and destination are as follows.

1. The source (src) is the file, the destination (dest) is the file

Description example

src=..\aaa.txt
dest=..\bbb.txt

Aaa.txt is moved to bbb.txt.
If override = false, if bbb.txt exists, it will not be moved.

2. The source (src) is the file, the destination (dest) is the folder

Description example

src=..\aaa.txt
dest=..\foo

Aaa.txt is moved to foo \ aaa.txt.(The folder foo is prepared in advance)
If override = false, if foo \ aaa.txt exists, it will not be moved.

3. The source (src) specifies the folder, the destination (dest) specifies the folder, the wild card

Description example

src=..\logs
dest=..\logs2
wildcard=*.log

The logs \ *. Log file is moved to logs2.(The folder logs 2 is prepared in advance)
If override = false, if there is a file with the same name in the destination folder, move processing will not be performed.

4. If the source (src) is a folder, the destination (dest) is a folder, dest does not exist

Description example

src=..\logs
dest=..\logs2

If the logs2 folder does not exist, the logs2 folder is created. All files and folders under logs are moved to logs2.
> Logs2 \ system.log)

If override = false, if there is a file with the same name in the destination folder, move processing will not be performed. The original directory (logs) is not deleted.

5. The source (src) is the folder, the destination (dest) is the folder, dest exists

Description example

src=..\logs
dest=..\logs2

If the logs2 folder exists, the logs2 \ logs folder is created.
> Logs2 \ logs \ system.log)

If override = false, if there is a file with the same name in the destination folder, move processing will not be performed. The original directory (logs) is not deleted.

You can temporarily disable the job.

  1. Log on with an account with administrator privileges.
  2. Open the "Job" "Job Schedule Search" screen from the menu.
  3. Search the applicable "Job Schedule" and open the maintenance screen.
  4. Uncheck the "Enabled" flag and save it.
    Figure 2 Disable Job

You can send the job execution result by e-mail.

Multiple job execution can not be performed.

If you make a job start every minute, if execution of this job is not completed in 1 minute, a new job will not be executed.

Instead of specifying time, you can also run this job now."Execute job immediatelyPlease read.