There are many plugins that can backup your wordpress website and migrate it. But because I have modified some files of wordpress, I have to manually backup them. Here is how I do it.
The following solution only works if you serve a wordpress on a linux vps, and you are working on another Linux.
拍的照片越来越多,存到 Google Photo 上或者 Google Drive 上不放心,还是放在自己手里舒服,而且归档整理也更方便。打算组个小服务器或者 NAS,先学习一下存储技术。
Linux 设置定时任务方式显然不止一种,其中常用的两种是 cron 和 systemd-timer。
cron
在很多 unix-like 系统上,cron 是默认安装的定时任务管理软件,比如在 Debian 上,叫 crontab,但是 Arch linux 默认没有这个,要用 systemd timer。
Configure LCMP stack
LCMP refers to Linux-Caddy-MariaDB-PHP
Where M can also be Mysql
Been using caddy + hugo for 2 years. Though there are developed cmi(content management system) like netlifycms for hugo, it's inconvenient to post new contents, so I decided to give wordpress a try. I already tried nginx and apache before, and found them pretty difficult to configure. So I will stick with caddy as backend.
以前一直觉得,写软件就是写功能,只要把应该有的功能写完,其他无所谓。直到写的软件越来越大,越来越复杂,工程内的文件杂七杂八堆在一起,看得眼睛累。过了一段时间忘了最初写代码时的想法,维护起来也很麻烦。这个时候意识到了软件架构的重要性。
软件架构的确有个发展顺序,但并不是越新越“好”。他们有着各自的优缺点,选择适合自己项目的架构。