Commits

b7w committed d56b2ab

Add VOLUME_SIZE size to conf

Comments (0)

Files changed (2)

 # DEPTH > 0 - FOLDER
 #   If depth from root equal some *value* - archive folder.
 # MAX_SIZE - 4000MB
-#   Max archive size. IF bigger print warn and not upload.
+# VOLUME_SIZE - 2000MB
+#   Max package size. If bigger archives will be split to VOLUME_SIZE.
 # HISTORY_SIZE - 8
-Options = namedtuple('Options', 'DEPTH, MAX_SIZE, HISTORY_SIZE')
-options = partial(Options, DEPTH=None, MAX_SIZE=4000, HISTORY_SIZE=8)
+Options = namedtuple('Options', 'DEPTH, MAX_SIZE, VOLUME_SIZE, HISTORY_SIZE')
+options = partial(Options, DEPTH=None, MAX_SIZE=4000, VOLUME_SIZE=2000, HISTORY_SIZE=8)
 
 # LOCAL - local path to folder
 # REMOTE - remote path to folder
                 '-mx{0}'.format(self.level),
                 '-mhe=on' if self.password and self.hide else '-mhe=off',
                 '-p{0}'.format(self.password) if self.password else None,
-                '-v{0}m'.format(self.options.MAX_SIZE) if split else None,
+                '-v{0}m'.format(self.options.VOLUME_SIZE) if split else None,
                 self._escape(path), ]
         args += [self._escape(i) for i in self.package.files]
         cmd_str = ' '.join([i for i in args if i])