From d184f26889e08af1a35ad136b756775e600af406 Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 7 Jan 2008 22:21:49 +0000 Subject: [PATCH] renaming git-svn-id: http://svn.parisson.org/svn/tools/trunk@25 457c0346-1240-4656-8a5a-9edca8063506 --- zope_backup_all.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 zope_backup_all.py diff --git a/zope_backup_all.py b/zope_backup_all.py deleted file mode 100755 index 62bee5a..0000000 --- a/zope_backup_all.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/python -# Backups all zope instances (any versions) -# -# Depends : zope_instance.py -# Copyright (C) 2007 Guillaume Pellerin - -import os -import sys -from zope_instance import * - -version = '0.1' -info = 'zope_backup v'+version+'\n'+ - """Usage: zope_backup DIRECTORY - where DIRECTORY is the folder where you want to backup - the instances of the different versions of zope.""" - -if len(sys.argv) < 2: - sys.exit(info) -else : - backup_dir = sys.argv[1] - -z = ZopeInstall() -instances = z.get_instances() -instance_main_dir = z.instance_main_dir - -def backup_all(): - for version in instances: - for instance in instances[version]: - z = ZopeInstance(version, instance) - print z.get_instance_dir() - z.backup(backup_dir) - print version + ': ' + instance + ' backuped !' - -if __name__ == '__main__': - backup_all() - print "Backup_all Zopes done !" - - - -- 2.39.5