[Automysqlbackup-users] Incorrect "du" command for RHEL6
Automatic MySQL Backup
Brought to you by:
wipe_out
From: Jonathan B. <jb...@ba...> - 2013-06-14 13:42:10
|
I'm using automysqlbackup on Redhat 6 and CentOS 6 systems. the script returns the following warning. It still works, but should be fixed: 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) This is at line: 1972 Changing it to the following fixes the problem: echo `du -hs --si "${CONFIG_backup_dir}"` Also, on another note, since this script should only be run by root, I think it should go into /usr/local/sbin rather than /usr/local/bin. Overall, a great program. Thanks JBB |