Still early, enjoying a cup of coffee while I check social media.
Code

Created a Custom Post Type for documenting Projects.
From the desktop of Joseph Dickson
Still early, enjoying a cup of coffee while I check social media.

Created a Custom Post Type for documenting Projects.
This process requires a remote webhost running on a Linux distribution such as Ubuntu. Before you begin you’ll need the following information about your server.
mysql username, password and database table name
ssh root@your-domain.com
root@your-domian.com's password:
Open a new terminal window and run the ssh command above.
Once logged in navigate to a new “Current Directory” to a backup folder of your choosing and create a folder to store your backup. I like to use today’s date.
All commands below are performed with superuser / root access
cd /var/www/backups
mkdir 20221001
cd 20221001
mysqldump --add-drop-table -h localhost -u username -p wp_wordpress > wordpress.bak.sql
Enter password:
ls
wordpress.bak.sql
tar czvf wordpress.tar.gz wordpress.bak.sql ../../html/wp-content/ ../../html/wp-config.php ../../html/.htaccess
Effectively happening is the creation of an archive file named named wordpress.tar.gz which includes the database, wp-config.php, .htaccess and everything in the wp-content folder. You may include others if you like.
cp wordpress.tar.gz /var/www/html/
Move the archive to a public folder and download.
wget your-domain.com/wordpress.tar.gz
On your local machine open an new terminal window and use wget to download the archive.
Be careful using the rm command. Any files removed can’t be recovered. The -i flag will require a yes or no confirmation.
rm -i /var/www/html/wordpress.tar.gz
rm: remove regular file '/var/www/html/wordpress.tar.gz'?
That’s it, admittedly the process takes a little practice. However, for small to medium sized sites a person could run thorough the process in a matter of minutes.
Spent the bulk of the day purging old documents, going back as far as two decades. It’s alarming how much paper we collect and forget to destroy over time. The Federal Trade Commission has a fantastic post A pack rats guide to shredding which basically says you don’t need tax records beyond seven years. Naturally everything else is fair game.
“You can’t stay in the past you’ll dissolve”
Chapter 14 of the Redshirts Audiobook via Audible