Page 1 of 1

Rsync files from NAS to PI

Posted: Sun Jul 02, 2023 10:06 pm
by Mike R
As the Synology Drive Client is not compatible with RPI architecture, the purpose of this exercise is to have an "always updated" copy of my keepass database on the PI so I can launch KeePass from the panel instead of having to mount the network drive via file manager.
The goal is to run this as a cron job at startup so changes are synced without user input.
Getting there... :D

Tun on rsync service on NAS via control panel/file services/rsync

On PI enter in terminal:

Code: Select all

rsync -a usename@ipaddress:/volume1/NetBackup/manjaro/ /home/biffboffo/Downloads/sync
This will take the contents of the flolder 'manjaro' on the NAS and sync it to the 'sync' folder in Downloads on the PI
The -a tag is to create and archive, which only syncs changes, but also permissions.
Change the syntax around as needed for more convenience.

Helpful link--> https://www.digitalocean.com/community/ ... irectories