Restore a split backup (Command Line Utility)

Restore a split backup of an environment.

In the case of a split backup, you have two backups: One for the database and one for the other files. You can restore these backups as follows:

  • Restore both backups using a single command line action.
  • Only restore the backup of the database over an existing environment.

It is not possible to restore only the backup of the other files.

User performing the action

Select the Backup copies from command line check box in the properties of the command line user.

Default options

Data

 

Action:

RESTORE

General options:

Default.

/H

Name of the backup of the SQL database (.adb file):

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE" /O"Environment name " /G"Username" /W"Password" /L"Logfile" RESTORE /B"Omgeving.ZIP" /H"Omgeving.adb" /E"NieuweOmgeving" /S"Server"

/B

Name of the backup of the other files (.zip file).

You must always combine /B with /H.

/O

Environment name.

This option is optional. If you specify an administrator as the user, do not specify the /O option. If you specify a command line user from a certain environment, you do specify the /O option.

If you only restore the database (you leave out /B), you must overwrite the existing environment. In this case the /O and /E parameters are mandatory.

See also