- Feb 2, 2009
- 1,666
- 0
- 0
I got a Macbook with Snow Leopard. I manually Rsync my Music files to my server that's running Debian.
The building file list process takes forever... since this is a one way sync I was thinking about maybe writing a CSH script that watches the Music drive for changes, I guess it would compare to the last scan and see what's the difference by using the diff command, then maybe running a SFTP command on the files that were added since the last scan....
Would this be a good way of doing it?
The building file list process takes forever... since this is a one way sync I was thinking about maybe writing a CSH script that watches the Music drive for changes, I guess it would compare to the last scan and see what's the difference by using the diff command, then maybe running a SFTP command on the files that were added since the last scan....
Would this be a good way of doing it?
Code:
Current code...
#! /bin/csh -f
rsync -e "ssh" -vrca --delete-after ~/Music/ USERNAME@192.168.255.107:/mnt/hd1/share/media/music/
Last edited: