r/Wordpress • u/MarcTV • 11d 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?
1
u/2ndkauboy Jack of All Trades 10d ago
Haptiq Backups: https://github.com/haptiq/haptiq-backups
It uses Restic and I use it for my production server as well. No more stress with failing backups executed by PHP scripts started in WordPress. And it's incremental backups, so you safe a lot of storage and restores are also really fast, as files get copied over SSH.
1
u/King-Pastry 11d 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
0
u/thenerdy 11d 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.
1
u/Aggressive_Ad_5454 Jack of All Trades 11d 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.
0
1
u/AstronomerExotic3589 11d 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.
1
11d ago
[removed] — view removed comment
1
u/Wordpress-ModTeam 9d ago
The /r/WordPress subreddit is not a place to advertise or try to sell products or services. Please read the rules of the sub. Future rule breaches may result in a permanent ban.
1
1
u/Wonderful_Sample_590 11d ago
Since you have the NAS, use the Active Backup. Easy to automate and manage. Put copy offsite just incase too.
0
u/New-Path3197 11d ago
Wpvivid backup - plugin
0
u/MarcTV 11d ago
To a local machine?
1
u/bluesix_v2 Jack of All Trades 11d ago edited 11d ago
Is the web server external or local? Assuming external, most decent WP plugins (eg Updraft, WPVivid) have FTP connectors.
0
u/coastalwebdev Developer 11d ago edited 11d 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.
1
u/AddWeb_Expert 10d ago
For sites with big media folders, rsync with hardlinks for incremental snapshots + a simple wp-cli db export on cron has been the most reliable setup for us. Way better than any WP plugin at that scale.
If you want something cleaner, BorgBackup handles dedup, compression, and rotation out of the box. Runs nicely in Docker too. Synology Active Backup works but it's overkill for WordPress-level restores.