Files
26418140108281ae5ac11004ebf33b7b3e08c74d
swift /bin /swift-object-replicator

38 lines
1.6 KiB
Plaintext
Raw Normal View History

2011年03月24日 15:51:44 -07:00
#!/usr/bin/env python
# Copyright (c) 2010-2012 OpenStack Foundation
2010年07月12日 17:03:45 -05:00
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from swift.obj.replicator import ObjectReplicator
from swift.common.daemon import run_daemon
2010年07月12日 17:03:45 -05:00
2010年08月20日 00:42:38 +00:00
if __name__ == '__main__':
parser = OptionParser("%prog CONFIG [options]")
parser.add_option('-d', '--devices',
help='Replicate only given devices. '
'Only has effect if --once is used.')
help='Replicate only given partitions. '
'Only has effect if --once is used.')
help='Replicate only given policy indices. '
'Only has effect if --once is used.')
conf_file, options = parse_options(parser=parser, once=True)