This bash script quickly does the backup of the wp-content
directory and uses the WPCLI command to export the database.
Place the script in the WordPress root directory and run sh bkup.sh
.
After the script executes an archive should be located in the WordPress root directory similar to this: site_wpcontent_bkup_12_30_2019.zip
.