Example #1
0
def call_seafserv_gc():
    args = [
        os.path.join(install_path, 'seafile', 'bin', 'seafserv-gc.exe'),
        '-c', ccnet_dir,
        '-d', seafile_dir,
    ]

    print 'Starting gc...\n'
    run_argv(args)
Example #2
0
def call_seafserv_gc():
    args = [
        os.path.join(install_path, 'seafile', 'bin', 'seafserv-gc.exe'),
        '-c',
        ccnet_dir,
        '-d',
        seafile_dir,
    ]

    print 'Starting gc...\n'
    run_argv(args)
Example #3
0
def call_syncwerk_server_gc():
    args = [
        os.path.join(install_path, 'syncwerk', 'bin', 'syncwerk-server-gc.exe'),
        '-c',
        ccnet_dir,
        '-d',
        syncwerk_dir,
        '-F',
        central_config_dir,
    ]

    print 'Starting gc...\n'
    run_argv(args)
Example #4
0
def do_migrate_storage():
    '''use seaf-migrate to migrate objects from the 2.1 layout to 3.0 layout'''
    args = [
        os.path.join(install_path, 'seafile', 'bin', 'seaf-migrate.exe'),
        '-c', ccnet_dir,
        '-d', seafile_dir,
    ]

    print 'Starting migrate your data...\n'
    if run_argv(args) != 0:
        raise Exception('failed to migrate seafile data to 3.0 format')