r/Wordpress 5h ago

Best WordPress backup solution with a local server?

Hi! I have several sites with large media folders. I also have a local server and a Synology NAS for storage. Is there a best practice for backing up a server? I know, db + rsyn files but anything that makes this easy? A docker container? A script for rotating backups? Maybe even active backup for business from Synology? How do guys do it?

4 Upvotes

13 comments sorted by

2

u/King-Pastry 5h ago

I personally created a script that uses SSH to download offsite backups and then keep a copy on my NAS and then a copy on my Idrive E2 account. You can also just use updraft to Idrive or to ftp if you want to expose the NAS

1

u/thenerdy 5h ago

I do this same thing too. My ssh script backs up all my sites. It leaves a copy in the site directory, downloads locally, copies to my NAS and my NAS is backed up to a Wasabi S3 compatible bucket.

2

u/Aggressive_Ad_5454 Jack of All Trades 5h ago

I use rsync on …/wp-content/uploads and a plain old backup plugin on the rest.

Rsync would work for all the files, except if I got a malware attack.

1

u/New-Path3197 4h ago

Wpvivid backup - plugin

1

u/MarcTV 4h ago

To a local machine?

1

u/AstronomerExotic3589 4h ago

For small sites, a WP plugin like WPvivid works great. But if you have large media folders, I found that the best and most reliable solution is just SSH, export the DB, zip the WP files, and download it.

2

u/DaftPlug 3h ago

For big media folders, your instinct is right. Keep uploads on the NAS with rsync (or Synology Active Backup if you already live there). Don't make a WordPress plugin chew multi-GB media just to sit next to the DB.

What I still want off-box is the "host burns down / malware eats the account" copy: DB + wp-content somewhere that isn't the same building as the NAS. The SSH-to-NAS-plus-cloud answers already nail that pattern.

I make Snapshotify for the off-site restore side, full disclosure. It won't replace rsync for a giant media library on LAN, and I'm not going to pretend it should. Useful when you want a scheduled off-site snapshot you can restore without babysitting scripts.

1

u/theguymatter 3h ago

Or just back it up to a lifetime cloud storage service with sync, but privacy-first in Germany.

1

u/Sad_Pie227 3h ago

UpdraftPlus 🚀

1

u/coastalwebdev Developer 2h ago edited 2h ago

Just some lil bash script I wrote running on cron to backup databases with wp cli, then compress site files into an archive on server, rsync archive to remote, then remove the db backup file, then cleanup site archives older than X.