1
========================================
2
obsync -- The object synchronizer tool
3
========================================
10
| **obsync** [ *options* ] *source-url* *destination-url*
16
**obsync** is an object syncrhonizer tool designed to transfer objects
17
between different object storage systems. Similar to rsync, you
18
specify a source and a destination, and it will transfer objects
19
between them until the destination has all the objects in the
20
source. Obsync will never modify the source -- only the destination.
22
By default, obsync does not delete anything. However, by specifying
23
``--delete-after`` or ``--delete-before``, you can ask it to delete
24
objects from the destination that are not in the source.
30
Obsync supports S3 via ``libboto``. To use the s3 target, your URL
31
should look like this: ``s3://host-name/bucket-name``
33
Obsync supports storing files locally via the ``file://`` target. To
34
use the file target, your URL should look like this:
35
``file://directory-name``
37
Alternately, give no prefix, like this: ``./directory-name``
39
Obsync supports storing files in a RADOS Gateway backend via the
40
``librados`` Python bindings. To use the ``rgw` target, your URL
41
should look like this: ``rgw:ceph-configuration-path:rgw-bucket-name``
47
.. option:: -h, --help
49
Display a help message
51
.. option:: -n, --dry-run
53
Show what would be done, but do not modify the destination.
55
.. option:: -c, --create-dest
57
Create the destination if it does not exist.
59
.. option:: --delete-before
61
Before copying any files, delete objects in the destination that
62
are not in the source.
64
.. option:: -L, --follow-symlinks
66
Follow symlinks when dealing with ``file://`` targets.
68
.. option:: --no-preserve-acls
70
Don't preserve ACLs when copying objects.
72
.. option:: -v, --verbose
76
.. option:: -V, --more-verbose
78
Be really, really verbose (developer mode)
80
.. option:: -x SRC=DST, --xuser SRC=DST
82
Set up a user translation. You can specify multiple user
83
translations with multiple ``--xuser`` arguments.
87
Overwrite all destination objects, even if they appear to be the
88
same as the source objects.
96
Access key for the source URL
100
Secret access key for the source URL
104
Access key for the destination URL
108
Secret access key for the destination URL
112
Access key for both source and dest
116
Secret access key for both source and dest
118
.. envvar:: DST_CONSISTENCY
120
Set to 'eventual' if the destination is eventually consistent. If the destination
121
is eventually consistent, we may have to retry certain operations multiple times.
129
AKEY=... SKEY=... obsync -c -d -v ./backup-directory s3://myhost1/mybucket1
131
Copy objects from backup-directory to mybucket1 on myhost1::
133
SRC_AKEY=... SRC_SKEY=... DST_AKEY=... DST_SKEY=... obsync -c -d -v s3://myhost1/mybucket1 s3://myhost1/mybucket2
135
Copy objects from mybucket1 to mybucket2
141
**obsync** is part of the Ceph distributed file system. Please refer
142
to the Ceph wiki at http://ceph.newdream.net/wiki for more