Bash functions for backup scripts.