This is a tricky one:
I have two servers, the first one is a NAS and the second I`ll call XTREAMER (It's a media center with limited shell functions - running BusyBox).
XTREAMER has no rsync capability, but it`s able to connect to NAS without a password (ssh key installed)
NAS cannot connect via ssh to XTREAMER (installing ssh keys on XTREAMER does not work).
So basically I tought I could just copy files using scp:
scp user@NAS:/nasfolder/ /xtreamerfolder/
The problem is that I`d like to check if the file is already on XTREAMER, and if it is I do not wish to copy it.
Can somebody help me out with a script that connects from XTREAMER to NAS, gets a list of files/folders on NAS, checks the ones that exist back on XTREAMER and scp those that do not exist on XTREAMER? (remember that ssh only works from XTREAMER to NAS so scp has to run on XTREAMER side)
Keep in mind that XTREAMER has really limited unix functions. I know ssh/scp is working fine though.
Thanks a lot, sorry I couldn`t come up with a code, unix programming is just not my thing :/
I hope I made myself clear :)