How to use Git for Linux backup management

git-logoFor backup we need an external host where we can store our configuration files. Generally we are using separate remote servers or Cloud Storage for this purpose.
In this example I will show you how can we use Github or any Git repository for backup policy.
For this we need to create a account on GitHub or you can create a repository on your hosted Git server.

Sign into GitHub and created new repository named after the host

On the server Issue the below commands as root user

Add a top-level directory to git for backup

Now we need to commit with a comment message

Set the remote project — only need to do this once for the session

Save/ Push to GitHub

Now we will add Nagios config files to GitHub

You can add other configuration files too like above examples.

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply