Files and directories to backup in Ubuntu 18.04

I am running a LAMP Ubuntu 18.04. Recently I installed rclone to backup my files to google drive.

Currently what I do is, backup all databases using automysqlbackup and sync to google drive including /var/www directory.

What are the other files and directories to backup which I can restore easily without starting from the scratch?

Note: I use vertualhost also.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

/etc/apache2/ ? What else have you configured as part of your server setup

Same problem.


You can make sure that you backup the site/app database and the files/data as well. If you’re not making any changes to the virtual host and the Apache configuration this can be skipped as regular backup and only create a copy to save elsewhere if you make any changes to the setup itself.

Hope that this helps! Regards, Alex

Okay. found another directory to backup if you use letsencrypt, making regular backups of /etc/letsencryptfolder is ideal. says in this page

So now backup

  • /var/www/
  • /etc/apache2/
  • /etc/letsencrypt/ (if use letsencrypt for ssl)
  • /var/lib/automysqlbackup/ (if use automysqlbackup mysql backup)

Anything else?