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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

/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