CASE environment: operating system version: RedHatEnterpriseLinuxServerrelease5.764bit database version: 5.6.19MySQLCommunityServerAutoMySQLBackup: Automysqlbackup-v3.0_rc6 case scenario: AutoMySQLBack... case environment:
Operating system version: Red Hat Enterprise Linux Server release 5.7 64bit
Database version: 5.6.19 MySQL Community Server
AutoMySQLBackup: Automysqlbackup-v3.0_rc6
Case scenario:
When you back up AutoMySQLBackup 3.0, an alarm error occurs: "du: WARNING: use -- si, not-H; the meaning of the-H option will soon change to be the same as that of -- dereference-args (-D) "can be found below:
========================================================== ==============================================
Total disk space used for backup storage...
Size-Location
1.8 M/u01/db_backup/mysqlbackup/
========================================================== ==============================================
###### WARNING ######
Errors reported during AutoMySQLBackup execution .. Backup failed
Error log below ..
Du: WARNING: use -- si, not-H; the meaning of the-H option will soon
Change to be the same as that of -- dereference-args (-D)
====================================== End of Backup ==== ======================================
========================================================== ==============================================
This error occurs because the du command on Red Hat Enterprise Linux 5.7 does not comply with the POSIX standard. For more information, see AutoMySQLBackup 3.0 warning on du in Centos (5.7)
The POSIX specifications are. it seems, that the Centos 5.7 version of du is not POSIX compliant, but will soon be. I have done my best to use only POSIX compliant syntax to assure the bug-free running on most systems. unfortunately, I can't take care of every system and distribution, which chooses to defy POSIX syntax. for other people and myself, it wocould be a good idea to get the options of du on Centos 5.7, so please post 'Du -- help '.
In the command du -- help, you can see the following information from the help information:
You can find the following script by modifying the script/usr/local/bin/automysqlbackup, modify the "echo 'Du-hsH" $ {CONFIG_backup_dir} "'to echo 'Du-hs" $ {CONFIG_backup_dir} "' to solve the problem.
This problem does not occur in Red Hat Enterprise Linux Server release 6.6. its du version is 8.4, and the du command version on Red Hat Enterprise Linux 5.7 is du (GNU coreutils) 5.97.
# Du -- version
Du (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3 +: gnu gpl version 3 or later
This is free software: you are free to change and redistribute it.
There is no warranty, to the extent permitted by law.
Written by Torbjörn Granlund, David Macenzie, Paul Eggert,
And Jim Meyering.