How to Back Up a VPS to Google Drive Automatically
Set up automatic nightly VPS backups to Google Drive with rclone and cron, then prove the backup actually restores before you need it.
Set up automatic nightly VPS backups to Google Drive with rclone and cron, then prove the backup actually restores before you need it.
Your posts, comments, and settings live in the database, not in your files. This guide sets up a nightly mysqldump backup with cron, offsite storage, retention, and a restore test you can trust.
Every WordPress site on a VPS runs scheduled jobs in the background: publishing queued posts, checking for plugin updates, sending email, clearing expired transients. On a default install, those jobs run through wp-cron.php, which only fires when someone visits your site. The wordpress cron vs real cron question comes down to who triggers the work: … Baca Selengkapnya
A cron job that takes longer than its schedule allows is a quiet way to break a server. The next run starts while the previous one is still working, two copies of the same script fight over the same files, and a backup that should take ten minutes ends up running three times at once. … Baca Selengkapnya
Daily Server Health Report Cron: Email It Each Morning Most server problems warn you first: disk space creeps up, memory runs low, a service stops after a reboot. But nobody logs in every day to check. A daily server health report cron fixes that by running a small script each morning and emailing you the … Baca Selengkapnya
Daily Database Backups WordPress: Simple Script Setup Your WordPress posts, pages, comments, and settings all live in MySQL. If that database is lost or damaged, the files on disk are not enough to bring the site back. You need daily database backups wordpress can restore from, kept somewhere safe and tested now and then. This … Baca Selengkapnya
How to Back Up Your VPS to an External Drive Automatically Every Night When your VPS goes down, the backup sitting on that same server goes down with it. That is why it pays to back up VPS to an external drive every night. A copy stored somewhere else turns a dead server into an … Baca Selengkapnya
How to Run VPS Tasks with systemd Timers Instead of Cron Cron has scheduled Linux tasks for decades, and it still works. But on a modern VPS it hides failures, swallows output, and gives you no easy way to check whether last night’s backup actually ran. Running scheduled tasks with systemd timers instead of cron … Baca Selengkapnya
MySQL databases change constantly, and a backup taken by hand once in a while is not a backup strategy. A shop order, a new user, a comment posted five minutes ago: all of it lives only in the database, so losing the database means losing work your visitors already did. This mysql backup with mysqldump … Baca Selengkapnya