Skip to main content

Posts

Showing posts with the label db

Multisites on Docker Container (Wordpress framework)

 Assalamualaikum.   Photo by Domenico Loia on Unsplash   Short story, i want to replicate https://4nutz.tk to https://kedaibiskut.tk  and  i want them to keep running on docker containers. If you haven't know how did I setup the docker infrastructure for https://4nutz.tk you can read first my previous post.   I have to admit that i didn't study nginx proxy first to implement the multisites. this is more like a hack way ~ i'm just going to highlight what is important ya. 1) Created a new database in existing container mysql. dump 4nutz db to kedaibiskut. yeah i m doing this because i totally wants everything retains! later on i ll customize the data. this is due to basic configuration needed i already done all in 4nutz. for more details on  how to dump and retrieve wordpress db data checkout those posts! 2) i created a new wordpress container for the new website, for the content i copied all from 4nutz wordpress and of course change the wp-config....

Create Wordpress Website & MySQL Database Backup then Upload to Gdrive

 It's easy to use plugin, but you only need few commands to run :D Usually Wordpress user will just quickly find a plugin to backup the website and its databases. Is it to daunting to do it by ourselves? Photo by Science in HD on Unsplash     I find plugin is easy in certain way, but for an admin myself, i prefer simple command / script to get the job done.  Create database backup This is the command required to run a simple database backup in mysql.p/s you can change the destination path. I put in /tmp because i want to upload to gdrive later.   If you choose to upload to Gdrive Normally a user might just want to backup the file to its host server. For this case i wanted to upload the backup file(s) to Gdrive. And im using a third party Gdrive command client . You might want to checkout tutorial on how to get it installed in your server~   **Use at your own risk! the third party cli will have access and write permission to your Gdrive files!**   I...