How can I obtain an offline access token for my backup app?

I created a backup app for shopify store. My app is a background app. My question is how to get offline access token. I was read shopify access mode documentation but i did not understand. Expert pleace help me out.