Metadata-Version: 1.1
Name: docker-volume-manager
Version: 1.0.2
Summary: Convenient cli app for docker volume management.
Home-page: UNKNOWN
Author: Ankur Srivastava
Author-email: UNKNOWN
License: MIT
Download-URL: https://github.com/ansrivas/docker-volume-manager/archive/1.0.0.tar.gz
Description: # docker-volume-manager
        Manage your named docker volumes using this simple script.
        
        
        ### Managing docker-volumes with a simple script.
        -----
        ### Usage:
        
        1. Clone this repository:
        
          `git clone https://github.com/ansrivas/docker-volume-manager.git`
        
        2. Go to the directory and install this locally:
        
          `cd docker-volume-manager && pip install -e .`
        
        3. To save a named-docker-volume:
        
          `docker-volume-manager save --volume <existing_named_volume>`
        
        4. To load an already saved local volume to a named-docker-volume:
        
          `docker-volume-manager load --volume <new_volume_name> --path <absolute_path_to_your_saved_volume>`
        
        5. More options can be seen by using the help:
        
          `docker-volume-manager --help`
        
        6. A simple use case could be to backup files:
          ```bash
          # cat backup_script.py
          import os
          import subprocess
          import time
        
          files = os.listdir('./')
          tars = [f for f in files if f.endswith('.tar.gz')]
          to_keep = sorted(tars)[-7:]
          for tar in tars:
              if tar not in to_keep:
                  os.remove(tar)
        
          command = ["/usr/bin/docker-volume-manager", "save", "--volume", "your_docker_data_volume", "--interactive","False"]
          subprocess.check_output(command )
          ```
        
        ###### Disclaimer: Do not use it directly in a production environment. Test it locally before using it out there.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
