How to take Backup and Restore a Domain of Oracle GlassFish Application Server
Backup Domain
backup-domain subcommand is used to take backup of domain. Before start the backup process, ensure that domain is stopped and then execute the following command. The backup-domain command operates only when the domain is stopped or suspended.
# asadmin backup-domain --backupdir [directory patch] domainname
--backupdir switch is used to specify a directory in which to store the backup.
# asadmin backup-domain --backupdir C:\glassfish3\glassfish domain1
backup-domain subcommand is used to take backup of domain. Before start the backup process, ensure that domain is stopped and then execute the following command. The backup-domain command operates only when the domain is stopped or suspended.
# asadmin backup-domain --backupdir [directory patch] domainname
--backupdir switch is used to specify a directory in which to store the backup.
# asadmin backup-domain --backupdir C:\glassfish3\glassfish domain1
Restore Domain
restoree-domain subcommand is used to restore backup of domain. Before start the restore backup process, ensure that domain is stopped and then execute the following command.
# asadmin restore-domain --backupdir [directory patch] domainname
--backupdir switch is used to specify a directory where backups are stored.
Comments
Post a Comment