Simple backup script

Simple backup script

Today, I want to share with you a new bash script to backup your server with tar and bash.

This script performs the following steps :

  • define a backup folder
  • stop/start services
  • Remove the old backup file
  • create a backup file tar.gz

In the first part of the script, you can set your own parameters :

  • backup_folder : folder where your backup file will be created
  • backup_exclusion : array containing the folder you want to exclude
  • services_arr : array containing the service you want to stop before the backup task and start after.


Tar manual

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By :