Backup Glassfish domain using the asadmin backup-domain command
We can backup the domain using the asadmin backup-domain command as follows:
asadmin> backup-domain --backupDir /path/to/backup/directory myDomain
The effect of this command is to create a full backup of the domain directory. To complete the command, however, the domain must be stopped first.