Rsync files from NAS to PI

All the adventures with the PI
Post Reply
User avatar
Mike R
Site Admin
Posts: 70
Joined: Fri Jan 24, 2020 3:40 am

Rsync files from NAS to PI

Post 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
You Wouldn't Believe How Hard I Have to Work to be Lazy
Post Reply