You can use the Ruby backup gem GitHub - backup/backup: Easy full stack backup operations on UNIX-like systems. · GitHub
I use it in addition to my normal backups to back up to AWS.
You could also write your own script but the ruby gem is brilliant.
You’d usually need to backup:
- database
- user uploads
- site files/assets etc
- configurations/emails etc
Also agree with @Mandemus about security. Linux is pretty secure by default but the things @Mandemus mentioned is a great start in hardening your server.


















