functions.sh add implementation for backup functions