thumb_up
thumb_down
link
Copy link
Copied
insert_emoticon
lmatfy
Copied
Create backup (Command Line Utility)

You can have backups generated (automatically) using the BACKUP action in the Command Line Utility.

Note:

If you have a client/server installation, you can only perform this function on the server. In a stand-alone installation you perform the function on the PC. The backup of an environment is saved in a zip file. The zip file is placed in the backup folder, which you set yourself.

Note:

Check the available disk space on the disk to which you want to write the backup. The required disk space is approximately equal to five times the size of the backup.

The ‘AFAS Data‘ folder is also included in the backup. This folder also contains InSite and OutSite files.

User that performs the action

Select the Backup copies from command line check box in the properties of the command line user. If you want to make the backup as administrator, use the /B option (instead of /G). For the administrator Backup copies from command line check box does not have to be selected. 

For a backup of all environments using the /A option, specify the Profit administrator as the user.

Default options

Data

 

Action:

BACKUP

General options:

Default.

Examples:

Command line for user 'System' making a backup of the ERPDEMO environment. The file name is included in the date (/D).

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE" /O"ERPDEMO" /G"System" BACKUP /D

See the examples below for logging the actions of this command line action.

Extra Options

If a backup file already exists, it is overwritten. You can avoid this by adding a date, time and sequence number to the file name using the /D, /T and /S options.

Option

Explanation

/Z<Zip file>

  • Enter a different file name; the environment name is used if you leave it out. The file name should not include a path. Profit uses the path recorded in the Environment Manager.
  • This option does not work in combination with the /D /T /S /A option.

/D

Add the system date to the file name.

/T

Add the Time to the file name.

/S

Add a sequence number to the file name.

/E

Export format. The backup of SQL server is performed via bulk copy. This prevents exchange issues with different SQL servers. Only use this if necessary.

/N

No Database check. No error check will be performed on the database. This is faster, but less safe. Only use this if necessary.

/L<log file>

See the example below. You can use a general log file and a log file that applies to this specific command line action only.

For example:

  • Backup_General.log: General log file. If making a backup fails, this is logged in this file.
  • BackupResult.log: Log file containing the start and end times of making the backup.

    "C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE" /O"Environment name " /G"Username" /W"Password" /L"C:\Backup_general.log" BACKUP /L"C:\BackupResult.log"

/A

All the environments.

The command line should not contain the /O option.

If /A is used, specify the name of the Administrator as the user name.

/M<participant>

Make a backup of all environments of one ASP participant. Only allowed in combination with the /A option.

Not available in Profit Small Business and Profit Accountancy Lite.

/C

Only make a backup if something has changed.

See also

Process

Command Line Utility

Work area

app