Question : SCP Backup without overwriting and copying from remote to local

Hey experts,

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:

On XTREAMER:
1:
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 :)

Answer : SCP Backup without overwriting and copying from remote to local

Looks like your PartMgr service failed to update the registry hive. If you still insist on risking I syggest you the following. Boot from Parted Magic CD again and shrink the wrong reported partition for 500MB. Apply changes. When done restart to Windows. Does it report now correctly?
If not boot again to Parted Magic and increase the size for 500MB. Restart to Window. Does it report properly?
Also when you run DiskPart what sizes does it show?
Another possible cause - partition has been moved but file system not. DiskPart could help here.

Next time you need to perform resize with guarantee use Paragon Partition Manager 11 Server Edition: www.partition-manager.com
This tool never let me down.
Random Solutions  
 
programming4us programming4us