Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.27 KB

Www serwer backup script

It could be used to automate the process of making backups of your www files and mysql database.

What script does?

  • Packs selected directory on your server to restic repository,
  • Same with the selected mysql database,
  • Sends it to cloud using rclone e.g. Google Drive,
  • Removes the oldest backups(on the server and Google Drive) according settings.

What do you need to start using it

  • A Linux server with mysql.
  • Any Cloud provider for rcloud sync. E.g. for Google Drive you would need a valid Google Drive 'Client ID' and 'Secret client key' created.

Initial configuration

  1. Install required restic, resticprofile and rclone tools and also setup initial files, with the installation.sh script
./installation.sh
  1. Configure rclone for cloud backups
rclone config
  1. Fill up the ./config.conf file with your own details and also store somewhere safe, the generated password-file.

Launching backup

./backup.sh

You can add this to cron or run manually when needed.