Parameters |
Description |
TYPE |
Type of task to be carried out: |
PROJECTNAME |
Project name with complete file path (optional). |
ARCHIVENAME |
Archive name. |
DESTINATIONPATH |
Target directory |
COMMENT |
Comment on backup (optional). |
BACKUPMEDIA |
Type of saving: |
SPLITSIZE |
If the project to be backed up needs to be zipped, the target file can automatically be split into separate parts so it can be sent via e-mail. SPLITSIZE indicates the maximum file size in megabytes. If the SPLITSIZE = 0, the file is not split up. If the parameter BACKUPMEDIA = DISK, the SPLITSIZE is ignored. The parameter is optional (default value: |
BACKUPAMOUNT |
An enum constant that can accept the following values: |
COMPRESSPRJ |
Indicates whether the database should be compressed before saving (optional, 0 = No, 1 = Yes). |
INCLEXTDOCS |
Indicates whether external documents should be included in the backup (optional, 0 = No, 1 = Yes). |
INCLIMAGES |
Indicates whether image files should be included in the backup (optional, 0 = No, 1 = Yes). |
COPYREFDATA |
Indicates whether the referenced data (external documents, image files) should be copied, prior to the data backup, to the respective project directory (...\"Projectname"\DOC\*.* and ...\"Projectname"\Images\*.*) (optional, 0 = No, 1 = Yes). |
BACKUPMETHOD |
Type of backup: |
MDTYPE |
Type of master data to be backed up: |
SOURCEPATH |
Source directory only applies when backing up master data. |
FILENAME |
Name of the file to be backed up. |
Back up project:
backup /TYPE:PROJECT /PROJECTNAME:C:\Projects\EPLAN\ESS_Sample_Project.elk /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_prj.zw1 /COMMENT:Hello /BACKUPMETHOD:BACKUP /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /BACKUPAMOUNT:BACKUPAMOUNT_ALL /COMPRESSPRJ:0 /INCLEXTDOCS:1 /INCLIMAGES:1
backup /TYPE:PROJECT /COMMENT:Hello /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_prj.zw1 /BACKUPMETHOD:BACKUP /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /BACKUPAMOUNT:BACKUPAMOUNT_ALL /COMPRESSPRJ:0 /INCLEXTDOCS:1 /INCLIMAGES:1
Back up master data:
Back up plot frame with complete file path:
backup /TYPE:MASTERDATA /FILENAME:C:\PlotFrames\EPLAN\ESS_A3DP.fn1 /SOURCEPATH:C:\PlotFrames\EPLAN /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_MasterData /COMMENT:"Hello world" /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /MDTYPE:STANDARDSHEET
Back up plot frame without complete file path:
backup /TYPE:MASTERDATA /FILENAME:ESS_A3DP.fn1 /SOURCEPATH:C:\PlotFrames\EPLAN /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_MasterData /COMMENT:"Hello world" /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /MDTYPE:STANDARDSHEET
Back up all plot frames (*.fn1):
backup /TYPE:MASTERDATA /FILENAME:*.fn1 /SOURCEPATH:C:\PlotFrames\EPLAN /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_MasterData /COMMENT:"Hello world" /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /MDTYPE:STANDARDSHEET
Back up all files (*.*) in the specified source directory:
backup /TYPE:MASTERDATA /FILENAME:*.* /SOURCEPATH:C:\PlotFrames\EPLAN /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_MasterData /COMMENT:"Hello world" /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /MDTYPE:STANDARDSHEET
Back up all files (*.*) with the 'sh' file name extension in the specified source directory:
backup /TYPE:MASTERDATA /FILENAME:*sh /SOURCEPATH:C:\PlotFrames\EPLAN /DESTINATIONPATH:U:\temp /ARCHIVENAME:my_MasterData /COMMENT:"Hello world" /BACKUPMEDIA:DISK /SPLITSIZE:0.0 /MDTYPE:STANDARDSHEET