add unison port no

This commit is contained in:
Malin Freeborn 2022-02-07 10:58:16 +01:00
parent 3c82439ae9
commit 20aaa10349
Signed by: andonome
GPG Key ID: 52295D2377F4D70F

View File

@ -1,6 +1,6 @@
--- ---
title: "unison" title: "unison"
tags: [ "Documentation", "Backups" ] tags: [ "documentation", "backups", "sync" ]
--- ---
Install unison on both machines, and on both make the `~/.unison` directory. 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`. 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 ## 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. 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. Set unison to run with crontab or a systemd unit file to have directories synchronize automatically.
## Problem Solving ## Problem Solving
Unison is extremely sensitive to version changes. Unison is extremely sensitive to version changes.