list-backups
Lists all backups.
Synopsis
asadmin [asadmin-options] list-backups [--help]
[--long[={false|true}]]
[--domaindir domain-root-dir]
[--backupdir backup-directory]
[--backupconfig backup-config-name]
[domain-name]
Options
- asadmin-options
-
Options for the
asadmin
utility. For information about these options, see theasadmin
help page. --help
-?
-
Displays the help text for the subcommand.
--long
-l
-
Displays detailed information about each backup.
The default value isfalse
. --domaindir
-
Specifies the domain root directory, the parent directory of the domain upon which the command will operate.
The default value isas-install/domains
. --backupdir
-
Specifies the directory under which backup files are stored.
The default value isas-install/domains/domain-dir/backups
. If the domain is not in the default location, the location isdomain-dir/backups
. --backupconfig
-
Restricts the listing of backup files in the backup directory to those for the specified domain backup configuration.
Operands
- domain-name
-
Specifies the domain for which backups are listed.
This operand is optional if only one domain exists in the Payara Server installation.
Examples
Example 1 Listing Domain Backups
This example provides detailed information about backups in the default domain.
asadmin> list-backups --long
Description : domain1 backup created on 2023_12_01 by user adminuser
GlassFish Version : Payara Server 6.1.0 #badassfish
Backup User : adminuser
Backup Date : Wed Dec 01 09:22:45 PST 2023
Domain Name : domain1
Backup Type : full
Backup Config Name :
Backup Filename (origin) : /payara/glassfish/domains/domain1/backups/domain1_2023_12_01_v00001.zip
Domain Directory : /payara/glassfish/domains/domain1
Description : domain1 backup created on 2023_12_16 by user adminuser
GlassFish Version : Payara Server 6.1.0 #badassfish
Backup User : adminuser
Backup Date : Thu Dec 16 09:23:48 PST 2023
Domain Name : domain1
Backup Type : full
Backup Config Name :
Backup Filename (origin) : /payara/glassfish/domains/domain1/backups/domain1_2023_12_16_v00001.zip
Domain Directory : /payara/glassfish/domains/domain1
Command list-backups executed successfully.