PHP script to take db back up with retation policy code example Example: mysql backup database mysqldump database_name > database_name.sql