Пример #1
0
    def _backup_editor(self, editor):
        p = editor.path
        p = add_extension(p, '.txt')

        if os.path.isfile(p):
            # make a backup copy of the original experiment file
            bp, pp = backup(p, paths.backup_experiment_dir)
            self.info('{} - saving a backup copy to {}'.format(bp, pp))
Пример #2
0
    def _backup_editor(self, editor):
        p = editor.path
        p = add_extension(p, '.txt')

        if os.path.isfile(p):
            # make a backup copy of the original experiment file
            bp, pp = backup(p, paths.backup_experiment_dir)
            self.info('{} - saving a backup copy to {}'.format(bp, pp))
Пример #3
0
 def _backup(self):
     bp, pp = backup(self.config_path,
                     paths.backup_device_dir,
                     extension='.cfg')
     self.info('{} - saving a backup copy to {}'.format(bp, pp))
Пример #4
0
 def backup(self):
     backup(self.path, paths.mftable_backup_dir)
Пример #5
0
 def _backup(self):
     bp, pp = backup(self.config_path, paths.backup_device_dir, extension='.cfg')
     self.info('{} - saving a backup copy to {}'.format(bp, pp))