If your website involves a database where you store user information, you should backup your website files and database frequently in case your web server has hardware failures that is non-fixable. Depending on how often your website updates and stores new information, you can create automatic backups from monthly, weekly, daily or by the minute. It is very important to make backups of your website and database as sometimes the web hosting provider you’re with may run into natural disasters or may close down your account indefinitely without any notification.
To setup automatic backups you can set up cron jobs or ask your hosting provider. Make sure the files are saved in secondary or even a third source that is managed separately from your hosting provider.