EnglishFrenchSpanish

OnWorks favicon

csync2 - Online in the Cloud

Run csync2 in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command csync2 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


csync2 - cluster synchronization tool, 2nd generation

SYNOPSIS


csync2 [-v..] [-C config-name] [-D database-dir] [-N hostname] [-p port]...

COPYRIGHT


csync2 is copyright © 2004 - 2013 by LINBIT Information Technologies GmbH

csync2 is distributed under the GNU public license. See the file COPYING for details.

DESCRIPTION


This manual page documents briefly the csync2 command.
A verbose manual can be found on the csync2 homepage:

http://oss.linbit.com/csync2/paper.pdf

csync2 is a program for cluster wide file synchronization.

OPTIONS


With file parameters:
-h [-r] file..
Add (recursive) hints for check to db

-c [-r] file..
Check files and maybe add to dirty db

-u [-d] [-r] file..
Updates files if listed in dirty db

-o [-r] file..
Create list of files in compare-mode

-f [-r] file..
Force files to win next conflict resolution

-m file..
Mark files in database as dirty

Simple mode:
-x [-d] [[-r] file..]
Run checks for all given files and update remote hosts.

Without file parameters:
-c Check all hints in db and eventually mark files as dirty

-u [-d] Update (transfer dirty files to peers and mark as clear)

-H List all pending hints from status db

-L List all file-entries from status db

-M List all dirty files from status db

-S myname peername
List file-entries from status db for this synchronization pair.

-T Test if everything is in sync with all peers.

-T filename
Test if this file is in sync with all peers.

-T myname peername
Test if this synchronization pair is in sync.

-T myname peer file
Test only this file in this sync pair.

-TT As -T, but print the unified diffs.

The modes -H, -L, -M and -S return 2 if the requested db is empty. The mode -T
returns 2 if both hosts are in sync.

-i Run in inetd server mode.

-ii Run in stand-alone server mode.

-iii Run in stand-alone server mode (one connect only).

-R Remove files from database which do not match config entries.

Exit codes:
The modes -H, -L, -M and -S return 2 if the requested db is empty. The mode -T
returns 2 if both hosts are in sync. Otherwise, only exit codes 0 (no errors) and
1 (some unspecified errrors) are expected.

Modifiers:
-r Recursive operation over subdirectories

-d Dry-run on all remote update operations

-B Do not block everything into big SQL transactions. This slows down csync2 but
allows multiple csync2 processes to access the database at the same time. Use e.g.
when slow lines are used or huge files are transferred.

-A Open database in asynchronous mode. This will cause data corruption if the
operating system crashes or the computer loses power.

-I Init-run. Use with care and read the documentation first! You usually do not need
this option unless you are initializing groups with really large file lists.

-X Also add removals to dirty db when doing a -TI run.

-U Don't mark all other peers as dirty when doing a -TI run.

-G Group1,Group2,Group3,...

Only use these groups from config-file.

-P peer1,peer1,...

Only update these peers (still mark all as dirty). Only show files for these peers
in -o (compare) mode.

-F Add new entries to dirty database with force flag set.

-t Print timestamps to debug output (e.g. for profiling).

-s filename

Print timestamps also to this file.

-W fd Write a list of directories in which relevant files can be found to the specified
file descriptor (when doing a -c run). The directory names in this output are
zero-terminated.

Database switches:
-D database-dir or url

default: /var/lib/csync2
Absolute path: use sqlite database in that directory.

URLs:
sqlite:///some/path[/database.db3]
sqlite3:///some/path[/database.db3]
sqlite2:///some/path[/database.db]
mysql://[<user>:<password>@]<hostname>/[database]
pgsql://[<user>:<password>@]<hostname>/[database]

If database is not given, it defaults to csync2_<qualified hostname>

Note that for non-sqlite backends, the database name is "cleaned", characters
outside of [0-9][a-z][A-Z] will be replaced with _.

Creating key file:
csync2 -k filename

Environment variables:
CSYNC2_SYSTEM_DIR

Directory containing csync2.cfg and other csync2 system files. Defaults to /etc.

Note:
Csync2 will refuse to do anything if this file is found: $CSYNC2_SYSTEM_DIR/csync2.lock

Use csync2 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad