We generally talk a lot about Syncany, and whenever we explain the idea, people tend to ask the same questions. Here are a few of them – hopefully with satisfying answers.
- General questions
- What is Syncany?
- Why make something new? How is it different from X?
- Is there an App/Web-App/GUI for it?
- When will it be available? When is the release date?
- How can I help?
- Does it support multiple users?
- Does it work on Windows/Linux/Mac?
- What shouldn’t I use Syncany for?
- Can I use Syncany to sync two unencrypted folders? Can I mirror two folders?
- Where does the name Syncany come from?
- How do you pronounce Syncany?
- SyncAny? Sync Any? Syncanny?
- Technial and security questions
- Why is it written in Java?
- Can you write a plugin for X?
- What is the purpose of storing the master salt in the repo? Isn’t it already included in the Syncany link?
- What exactly is stored in the ‘syncany’ file in the repo? Is it needed?
- What file meta data (permissions, access time, etc.) are preserved in the sync?
- How can I edit the connection details, or reconnect to a repository?
- Common errors
- General questions
9.1. General questions¶
9.1.1. What is Syncany?¶
Syncany is open source Dropbox-like file sync tool. It syncs files between computers either manually or automatically. Users can define certain folders of their computers and keep this folder in sync with friends.
So what make Syncany awesome?
- Use-your-own storage (FTP, S3, WebDAV, NFS, Samba/Windows file share, ...)
- Files are encrypted before upload (don’t trust anybody but yourself)
- Files are deduplicated locally (massive space savings on remote storage)
What Syncany is not:
- A service. You don’t pay for it. You don’t get storage from us.
- Usable for critical files. It’s alpha software. Don’t do it!
- A large network of interconnected machines. You can’t share folders with strangers. You must trust the persons you share files with.
- A fully fledged version control system.
9.1.2. Why make something new? How is it different from X?¶
If there were something like Syncany, we wouldn’t be developing it. There are a few alternatives, but they all have a different focus, are not open source, have no versioning, cannot use arbitrary storage or don’t encrypt locally. As far as we know, no tool has this exact feature set.
Let’s pick the normal contenders: Dropbox, Wuala, SparkleShare, BitTorrent Sync, ownCloud, rsync, SyncThing.
And here’s how to filter them out: Dropbox, Wuala, and BitTorrent Sync are not open source, ownCloud, rsync and Ubuntu One don’t support encryption. SyncThing is bound to the peer2peer concept.
9.1.3. Is there an App/Web-App/GUI for it?¶
Yes! You can install it using
sy plugin install gui.
There is an outdated (and currently broken) proof of concept web interface.
9.1.4. When will it be available? When is the release date?¶
We don’t promise anything, because this is a spare time project. We are slowly moving towards beta and after that it will be a lot of testing before we can remove the beta label.
9.1.5. How can I help?¶
If you’re a developer, try out the code, review it and contact us on GitHub if you want to help. Check out the issues to find out more. Check out the wiki page for more ways to help.
9.1.6. Does it support multiple users?¶
You can connect to a single repo from many different machines, but there is no role concept or access control for users. All users have the same rights, meaning there is no administrator and once a user is connected he or she can easily delete all repo data if they want to.
9.1.7. Does it work on Windows/Linux/Mac?¶
The majority of Syncany developers work on Linux, but we are also testing it on Windows. We’ve done short cross-platform tests and it seems to work okay. We’ll test that even more in the future.
9.1.8. What shouldn’t I use Syncany for?¶
Here are some things Syncany isn’t good at, and things you shouldn’t use Syncany for:
- Critical files: At the moment, do not use Syncany for critical files. The software is still alpha software!
- Low CPU environments: Syncany uses up quite a bit of CPU power when it is indexing files. So in general, any situation where the client has little computation power.
9.1.9. Can I use Syncany to sync two unencrypted folders? Can I mirror two folders?¶
No this is not possible. Syncany stores data in a packed repository form. While this might seem as a disadvantage at first, it makes great things possible:
- Save space: Using the deduplication mechanisms in Syncany, you can save a lot of remote storage space (>90% space savings)
- File versioning: Syncany versions files, so if you overwrite or lose a file, you can restore it very easily
- Huge files: Syncany splits files into chunks, so it doesn’t matter how large the original file is.
To sync two folders directly, you can use rsync or Unison.
9.1.10. Where does the name Syncany come from?¶
The working title was Clonebox for a while. Then Philipp tried to find a name via Amazon Mechanical Turk. That didn’t work. Philipp’s girlfriend finally came up with the nice name Syncany. It combines the two works synchronize and anything.
9.1.11. How do you pronounce Syncany?¶
- In phonetic symbols: siŋkəni
- Like in this audio file.
9.1.12. SyncAny? Sync Any? Syncanny?¶
9.2. Technial and security questions¶
9.2.1. Why is it written in Java?¶
That’s easy: Because we speak Java!
9.2.2. Can you write a plugin for X?¶
People often ask about plugins for other storage backend – examples include Hazelcast, OpenStack Swift, Box.net, Amazon Cloud Drive, etc.
We’re currently concentrating on the core functionality – so plugins are not very high on the list. However, plugins are very easy to develop; just 200 lines of code or so... :-) If you want, you can of course develop the plugin yourself.
Plugins can be independently developed and deployed in other repos.
9.2.3. What is the purpose of storing the master salt in the repo? Isn’t it already included in the Syncany link?¶
The master salt is stored in the repo in case we do not use (or cannot use) Syncany links. When we simply do ‘sy connect’, we don’t have the salt anywhere, so it must be retrieved from the server.
9.2.4. What exactly is stored in the ‘syncany’ file in the repo? Is it needed?¶
The Syncany file stores information about the chunking mechanisms used. It is currently only used to check if the password is correct (see if it decrypts and deserializes correctly, but it will be used in the future to store repository-specific information.
9.2.5. What file meta data (permissions, access time, etc.) are preserved in the sync?¶
As of today, for each file version, we store the following metadata:
- Version (1, 2, ...)
- Type (FILE, FOLDER, SYMLINK)
- Status (NEW, CHANGED, ...)
- Relative path (e.g. ‘Documents/Hello.txt’)
- Symlink target (if type is SYMLINK, e.g. ‘Documents/Hello-orig.txt’)
- Size (in bytes)
- Last modified date/time (second-accuracy only due to file system restrictions)
- Updated date/time
- DOS permissions (archive, read-only, system, hidden)
- POSIX permissions (rwxrwxrwx)
The following things are not stored:
- Hardlinks are NOT stored/detected (not efficient), but data is not stored twice
- POSIX uid/gid are NOT stored
- ACLs are NOT stored
- Extended attributes are NOT stored (see #392)
- Access time and create time are NOT stored
You can see the metadata yourself by running
sy init --no-encryption --no-compression and then looking at the database-* files in the repository in a XML or text editor.
9.2.6. How can I edit the connection details, or reconnect to a repository?¶
If your backend storage credentials change (e.g. FTP user or password), it might be necessary to reconnect a local folder to a remote repository. As of today, you cannot edit a connection via the Syncany commands or GUI. As of now, you can manually change the
.syncany/config.xml file to achieve that. There already is a ticket to do a “sy reconnect” command (or something similar on GitHub.
9.3. Common errors¶
9.3.1. Error message “Could not generate DH 4096/2048 bits keypair”¶
If you see the error message “Could not generate DH 4096 bits keypair” or “Could not generate DH 2048 bits keypair” (or a similar message) during the
sy (init|connect) operation, the likely cause is that Java 7 only supports DH keys up to 1024 bits (due to a bug in Java 7 as indicated in this StackOverflow post) and Java 8 only supports DH keys with up to 2048 bits. As noted in GitHub issue #483, upgrading to Java 8 will allow DH keys with up to 2048 bits. Keys with 4096 bits are not yet supported in Java 7 or 8. The only “solution” is to downgrade the server’s TLS/SSL security parameters (cipher suites) to accept/downgrade to DH 2048 bit keys.