D
D
DiGiTAll2021-01-04 14:47:18
Backup
DiGiTAll, 2021-01-04 14:47:18

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

4 answer(s)
N
neol, 2021-01-04
@DiGiTAll

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.

K
ky0, 2021-01-04
@ky0

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.

A
Adamos, 2021-01-04
@Adamos

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.

D
Dmitry, 2021-01-14
@dlnsk

https://www.opennet.ru/dev/fsbackup/
https://github.com/opennet/FSBackup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question