I want to setup some kind of way to automaticly backup files on a windows server (and possibly Linux) to my home machine. I'm thinking some kind of permanent SSH tunnel to the remote server from my home server. I basically need a good way to transfer files via script, and something else then ftp as it is a complex protocol to work with specially when SSH tunnels are involved as it needs multiple ports and stuff. I want a single port protocol (may even make my own, can't be too hard).
Basically what I need to do is either
A: mount the remote server's drive to my local Linux server
B: mount my server's deposit directory to the remote server.
From that point it would be a copy operation or what not. Obviously I need security so this would be done through the tunnel.
What would be the easiest and best way of doing this? I'm hoping to be able to mount the windows share to linux so from linux server's point of view everything is central, if I do multiple servers. Then I can use rsync and treat the mount like a regular folder.
I *could* use ftp as well, if theres a way to mount it as a directory. Though I'm hoping to use SSH for the encryption benefits.
Basically what I need to do is either
A: mount the remote server's drive to my local Linux server
B: mount my server's deposit directory to the remote server.
From that point it would be a copy operation or what not. Obviously I need security so this would be done through the tunnel.
What would be the easiest and best way of doing this? I'm hoping to be able to mount the windows share to linux so from linux server's point of view everything is central, if I do multiple servers. Then I can use rsync and treat the mount like a regular folder.
I *could* use ftp as well, if theres a way to mount it as a directory. Though I'm hoping to use SSH for the encryption benefits.