Monday 10 June 2024

Syncing Files from Mac iOS to Freenas


Install Homebrew

/bin/bash -c "$(curl -fsSL"

Install sshpass

brew install sshpass


rsync -av -e 'sshpass -p <password> ssh -oHostKeyAlgorithms=+ssh-dss root@freenas' ./* <destFolder>

FreeBSD utility commands

list the number of files in the directory

ls -1 | wc -l

Display the subfolder usage

du -h

Recursively find files with the name

find . -name IMG_0003.JPG

No comments:

Post a Comment