Use warning and debug instead of echo
Use warning and debug instead of echo when possible. Current code has constructions like
echo "Warning: metadata does not exist for $dir.1. This backup may be only partially completed. Skipping rotation."
Echo should be used in these contexts just on the remote side.
(from redmine: created on 2012-02-27, closed on 2012-05-13)