add unison port no

This commit is contained in:
2022-02-07 10:58:16 +01:00
parent 3c82439ae9
commit 20aaa10349

View File

@@ -1,6 +1,6 @@
---
title: "unison"
tags: [ "Documentation", "Backups" ]
tags: [ "documentation", "backups", "sync" ]
---
Install unison on both machines, and on both make the `~/.unison` directory.
@@ -25,12 +25,19 @@ ignore=Name *.flac
```
The last command means it will ignore any file with a name ending in `.flac`.
Add a port with this line:
```
sshargs=-p 4444
```
## Automatic Runs
The first command means this will run but also confirm which files will be deleted, and which will be transferred, us `batch = true` instead.
Set unison to run with crontab or a systemd unit file to have directories synchronize automatically.
## Problem Solving
Unison is extremely sensitive to version changes.