# Setup Self-hosted LiveSync to secondary or subsequent devices
## Purpose
- Installing Self-hosted LiveSync to a newly installed device and get be synchronised from another device.
## Terms specifically used in this document
- [[Setup URI]]
- [[Configuration passphrase]]
## Warnings and Cautions
- If the vault is not empty, be sure to follow the `Procedures if the vault is not empty`.
- If the device vault is not empty and synchronised with the wrong remote database, vaults will be merged.
- This is definitely a chaotic nightmare.
- We can do nothing except give up and accept let it be, or completely roll back from the backup.
- LiveSync can track the file history, but cannot track the vault history.
- Please, be careful.
- If the vault is not empty, and possibly unmatched, **delete everything on the vault except the `.obsidian` directory once** after backing them up.
- If something completely unfortunate goes wrong, [[Safety Mechanism|Lock the database]] immediately. It can be performed by clicking the button which is on the `Remote database configuration`. After that, we can calmly rebuild the database on the device which is kept sane.
## Necessary Materials
- [[Setup URI]]
- [[Configuration passphrase]]
## Expected Outcomes
- The device has been synchronised with the remote database.
## Procedures
### Procedures if the vault is not empty
1. Make sure to back your vault of the device up.
2. If you are confident that all files match, proceed to the `main procedure`.
3. If not (**If there are unmatched files**), delete everything on the vault **except the `.obsidian` directory** once.
1. If you are on an iOS device, do not hesitate to make a new vault. Hidden files can be synchronised.
### Main procedures
1. Open obsidian.
2. Open the command palette and choose `Open the setup URI`.
3. Paste the Setup URI.
4. Enter the Configuration passphrase.
5. Answer `yes` for `Importhing LiveSync's conf, OK?`.
6. Select `Set it up as secondary or subsequent device`.
7. Synchronisation will begin. Hold on a minute.
8. When synchronisation has been done, we will be noticed `Configuration loaded`.
However, if the file operation looks still in progress, please wait for a while more. It will be shown in the status bar, or inside the editor (while some markdown file has been opened).
## Document information
- Written as of:
- Self-hosted LiveSync version 0.17.34
- Valid up to:
- Self-hosted LiveSync version 0.18.00
- Modified
- 25th March 2023
- Fixed Procedure