I have a CentOS VM that mounts my entire NAS over NFS (read-only) so that it can back it up to various places in various ways. I’m using Duplicati for encrypted, incremental backups to Google Drive. When I set it up, I found the documentation for a headless CentOS install was kind of scattered. As a result, I figured it might be useful to consolidate it here.
Commands
This should work on a vanilla CentOS install (run as root or use sudo).
From there, you can go to http://ipaddress:8200/ and configure your backups with the web gui. It’s pretty self-explanatory, but the official documentation is good from that point if you need help.
I didn’t run into any conflicts with SELinux, but as always, it could rear it’s ugly head if you’re backup up from somewhere it thinks should be protected.
That’s It!
I hope someone finds this useful! Any suggestions for additions/revisions are welcome.
Special thanks to @Ruffalo for turning me on to Duplicati.
If you do run a GUI, you will want to run with “–no-hosted-server --server-url=http://localhost:8200” to get the trayicon. The way Duplicati does it by default is pretty stupid, with the GUI trayicon also running the server.
I suggest setting your upload volume size to at least 250MB just to limit the number of files. I use 500MB myself.
Also there are a number of settings you’ll need for email notifications.
send-mail-from (whatever you want)
send-mail-to (address to send to)
send-mail-username (a Gmail username, not necessarily your main one)
send-mail-password (Gmail application password if you have 2FA setup)
send-mail-url (smtps://smtp.gmail.com for Gmail)
send-mail-level (All to test, then Warning,Error,Fatal)