Wednesday, June 12, 2024

syncing files with unison

rsync is great but its unidirectional.

  • synthing is bidirectional but i found out that you can't easily keep 2 folders in sync on the same computer (normally id make an alias but the folder exists on a usb drive)

my wifi router has a cool usb network storage feature where you can access the drive on the local network through smb. problem is it doesnt always stay mounted when i run the sync command.

The tool I found that works pretty great for bi-directional syncing is called unison.

brew install unison

after creating the configs i run it by typing this in the terminal

unison uke-songs

to sync my desktop ukulele songs with the usb stick mounted to the router. its cool that I can access these files from the roku tv in the 'roku file player' app

This way I can download music directly to the usb using a .zshrc alias, or download it to my desktop, drag it to the uke songs folder and sync the two.

No comments:

Post a Comment