does my backup method have drawbacks.

does my backup method have drawbacks.
i always work my drupal site in my PC's vamware environment.
then upload the and to webserver.
when I do backuping , i write a shell script as following :
tar -zxcf "OUTPUT" "DRUPAL_HOME"mysqldump -u root -p "DRUPAL_DB"
when I want to restore the backup, i write a shell script as following :tar -zxvf $TARmysql -u root -p   DROP DATABASE DB_NAMEmysql -u root -p   $DB_NAME < $DB_DATA
is there any chance for an error occur?
now,it works fine.
thank you!