fmuquartet
Programmer
Greetings,
At the moment I am wanting to **only** send recent changed files from client machines via 'find /dir*/log -mtime -1-print' which works, but now I am wanting to pipe this output to '/usr/local/bin/rync.'
I found something that should work for this, but when running it in a borne shell script it get errors:
The script is as follows:
rsync --rsync-path='rsync --files-from=<(cd src && find . -atime +6 -print)' \
remote:src/ dest/
So in my case this is what I tried:
#!/bin/sh
/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --files-from=<(cd /opt/foo && find dir*/log -print)
has anyone any experience in this arena?
At the moment I am wanting to **only** send recent changed files from client machines via 'find /dir*/log -mtime -1-print' which works, but now I am wanting to pipe this output to '/usr/local/bin/rync.'
I found something that should work for this, but when running it in a borne shell script it get errors:
The script is as follows:
rsync --rsync-path='rsync --files-from=<(cd src && find . -atime +6 -print)' \
remote:src/ dest/
So in my case this is what I tried:
#!/bin/sh
/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --files-from=<(cd /opt/foo && find dir*/log -print)
has anyone any experience in this arena?