~marix/duplicity/azure-storage-sas

« back to all changes in this revision

Viewing changes to duplicity/commandline.py

  • Committer: Kenneth Loafman
  • Date: 2016-11-21 17:06:39 UTC
  • Revision ID: kenneth@loafman.com-20161121170639-6vwkq775jmfkyqd1
* Merged in lp:~dernils/duplicity/robust-dropbox-backend
  - Added new command line option --backend-retry-delay
    that allows to determine the time that duplicity sleeps
    before retrying after an error has occured.
  - Added some robustness to dpbxbackend.py that ensures re-authentication
    happens in case that a socket is changed (e.g. due to a forced reconnect
    of a dynamic internet connection).

Show diffs side-by-side

added added

removed removed

Lines of Context:
624
624
                      metavar=_("path"), dest="file_changed",
625
625
                      callback=lambda o, s, v, p: setattr(p.values, "file_changed", v.rstrip('/')))
626
626
 
 
627
    # delay time before next try after a failure of a backend operation
 
628
    # TRANSL: Used in usage help. Example:
 
629
    # --backend-retry-delay <seconds>
 
630
    parser.add_option("--backend-retry-delay", type="int", metavar=_("seconds"))
 
631
                      
627
632
    # parse the options
628
633
    (options, args) = parser.parse_args()
629
634