Skip to content

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

License

Notifications You must be signed in to change notification settings

raqso/www-serwer-backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages