Пример #1
0
 def dobackup(self):
     if not self.cfgwhere.value:
         return
     self.saveAll()
     # Write config file before creating the backup so we have it all
     configfile.save()
     self.data = ''
     self.showOutput()
     self["statusbar"].setText(_('Running'))
     cmd = plugin.backupCommand()
     if self.container.execute(cmd):
         print "[AutoBackup] failed to execute"
         self.showOutput()
Пример #2
0
	def dobackup(self):
		if not self.cfgwhere.value:
			return
		self.saveAll()
		# Write config file before creating the backup so we have it all
		configfile.save()
		self.data = ''
		self.showOutput()
		self["statusbar"].setText(_('Running'))
		cmd = plugin.backupCommand()
		if self.container.execute(cmd):
			print "[AutoBackup] failed to execute"
			self.showOutput()