2.4.6 list-backups
Lists all the backups.
Synopsis
asadmin [asadmin-options] list-backups [--help] [--long[={false|true}]] [--domaindir domain-root-dir] [--backupdir backup-directory] [domain-name]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-backups subcommand displays information about the domain backups. This subcommand is supported in local mode only.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --long={false|true} | -l={false|true}
-
Displays detailed information about each backup. The default value is false.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- --domaindir domain-root-dir
-
Specifies the domain root directory and the parent directory of the domain upon which the command will operate.
The default value is Application Server installation directory/javaee/glassfish/domains.
Type: String
The following values can be specified:
-
Name of the directory
Default value: Application Server installation directory/javaee/glassfish/domains
-
- --backupdir backup-directory
-
Specifies the directory under which backup files are stored.
Type: String
The following values can be specified:
-
Name of the directory
Default value: Application Server installation directory/javaee/glassfish/domains/domain-dir/backups
If the domain is not in the default location, the location is domain-dir/backups.
-
- domain-name
-
Specifies the domain for which backups are listed.
This operand is optional if only one domain exists in Java EE Server installation.
Type: String
The following values can be specified:
-
Name of the domain
Default value: N/A
-
Examples
The following example lists the backups of the default domain, domain1, that are stored in the /net/backups.example.com/glassfish directory.
asadmin list-backups --backupdir /net/backups.example.com/glassfish domain1
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |