Answer the question
In order to leave comments, you need to log in
How to backup a web server on Ubuntu?
For the purposes of this question, "web server" refers to a remote virtual machine running Ubuntu Server 20.04 that hosts several recent releases of several sites. The stack is absolutely minimal - nginx, php-fpm, node, mysql/postgresql.
There are no control panels. Everything is configured via SSH.
The provider makes its own backups, but the entire virtual machine is backed up there, in a closed format, and once a day. I would like a software that will back up the selected directories, archive them, take dumps from the database or their replicas, and upload them to my remote server. Or several.
Of course, you can suffer and make it all bash scripts. But maybe there is something ready and more elegant? Ideally, in general with Web-GUI :)
Answer the question
In order to leave comments, you need to log in
Backupninja (most likely the package is in the Ubuntu repository). It's almost like a self-written script, only it has already been written for you. Can do incremental backups with rdiff-backup and duplicity.
Why do you call writing a script for a couple of dozen lines that makes differential backups of files some kind of rdiff-backup
`ohm and dump databases native utilities torment?
More flexible and efficient than this - no centralized system can do it for you. Centralization / unification makes sense when there are many services and they are of the same type. For your volumes, in my opinion, it is a self-written script that is more practical.
Cron + mysqldump + rsync.
Almost ready.
As elegant as it deserves.
As flexible as you need.
And as reliable as you yourself understand what you really need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question