← 返回命令列表

Linux command

amcheck 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run all checks

amcheck [config_name]

Run server-side checks

amcheck -s [config_name]

Run client host checks

amcheck -c [config_name]

Run local tests

amcheck -l [config_name]

Run tape tests

amcheck -t [config_name]

Check specific clients

amcheck -c [config_name] [client1] [client2]

Override a configuration option

amcheck -o [tapetype=EXABYTE] [config_name]

说明

amcheck performs self-checks on both the Amanda backup server and client hosts before a backup run. It helps identify potential issues that could cause backup failures, such as incorrect tape mounting, permission problems, or unreachable clients. On the server side, amcheck verifies that the correct tape is mounted for the next scheduled backup and checks local configuration and permissions. On client hosts, it confirms that the Amanda client daemon is running and that the backup server has proper permissions to access the filesystems scheduled for backup. The tool is typically run before scheduled backups or manually by administrators to verify the backup infrastructure is ready. Results can be displayed on standard output or sent via email using the -m option. The default behavior runs both client and server checks (-cs). Client checks have a configurable timeout (default 30 seconds) controlled by the ctimeout setting in amanda.conf.

参数

-s
Run server-side checks (equivalent to -lt)
-c
Run client host checks; optionally specify specific clients
-l
Run local tests on the server host (permissions, configuration)
-t
Run tape tests on the server host (verify correct tape is mounted)
-m
Send results via email to the address specified in amanda.conf
-M _address_
Send results to the specified email address
-w
Enable a more thorough tape check that overwrites the tape label
-a
Skip client checks if they fail
--client-verbose
Print verbose client output
-o _name=value_
Override a configuration option from amanda.conf

FAQ

What is the amcheck command used for?

amcheck performs self-checks on both the Amanda backup server and client hosts before a backup run. It helps identify potential issues that could cause backup failures, such as incorrect tape mounting, permission problems, or unreachable clients. On the server side, amcheck verifies that the correct tape is mounted for the next scheduled backup and checks local configuration and permissions. On client hosts, it confirms that the Amanda client daemon is running and that the backup server has proper permissions to access the filesystems scheduled for backup. The tool is typically run before scheduled backups or manually by administrators to verify the backup infrastructure is ready. Results can be displayed on standard output or sent via email using the -m option. The default behavior runs both client and server checks (-cs). Client checks have a configurable timeout (default 30 seconds) controlled by the ctimeout setting in amanda.conf.

How do I run a basic amcheck example?

Run `amcheck [config_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s do in amcheck?

Run server-side checks (equivalent to -lt)