Sander Jansen
Explorer
- Joined
- Dec 26, 2015
- Messages
- 87
Hey,
Me and a friend want to sync some folders. We both have SSH already active. I'm using a freenas box and my friend is using synology.
For ease of things, i want my FreeNAS to run the sync. (as FreeNAS is able to freely program rsync and synology cant)
As i said, we both have SSH already active and the plan was to have rsync run over ssh. as that is probably the easiest option to get our stuff in sync again.
Previously i used allway sync (windows) to do this but that's not really a option anymore.
I have tried this in the past and logging in seemed to be a problem as i remember ... something about synology not liking to allow ssh to other people then root or liking people to login with keys?... so synology uses sftp, witch in my eyes is the same as ssh. Also how can i use rsync to go both ways? not just one way. basically what it needs to go is:
1) upload nieuw files from FreeNAS to synology
2) download nieuw files from synology to FreeNAS
3) remove files that have been removed on the synology side
4) remove files that have been removed on the FreeNAS side
5) leave files alone that exists even though dates mismatch!
Point 5 is perhaps the most important! as we both have a lot of files from the previous sync, so a lot is already in both sides but with different dates as from copying.
I need to make a rsync job for about 4 folders including around 10 TB total. The plan is that it runs once a day or something... its not super important data as it mostly movies, games, programs and operating system iso's, i dont know about rsync but the programs folder includes over 1 million files (FTD memorial forum... yeah... old shit man :) ) so things need to be able to handle a lot of stuff.
So now the question... how can i go about this the easiest way? I know synology had rsync as well but when we tried to work with modules, it only worked one way.(back then)
The thing is, that on the synology side, there has to be as less manual tweaking as possible. If possible even no tweaking, just sftp on that side.
So is there anyone that has experience with setting something like this up?
Also maybe a small note: Do i have to have the user on my local side that is needed to login to synology? my local account is sander and my ssh account on synology is Sander but with upper case and a different password. how is this going to work?
EDIT:
For now im trying again with the ssh key way... i made a user that is exacly the same as my account on the synology box. I made a key using: ssh-keygen and after enabling a autentication manager service thing, i got my key. now for uploading it to synology, i get premission denied. i did: then it askes for my password and just says: premission dennied, try again.
On the other hand, normal login to ssh also wont let me login... and i know the password is correct as i can login with filezilla just fine.
Me and a friend want to sync some folders. We both have SSH already active. I'm using a freenas box and my friend is using synology.
For ease of things, i want my FreeNAS to run the sync. (as FreeNAS is able to freely program rsync and synology cant)
As i said, we both have SSH already active and the plan was to have rsync run over ssh. as that is probably the easiest option to get our stuff in sync again.
Previously i used allway sync (windows) to do this but that's not really a option anymore.
I have tried this in the past and logging in seemed to be a problem as i remember ... something about synology not liking to allow ssh to other people then root or liking people to login with keys?... so synology uses sftp, witch in my eyes is the same as ssh. Also how can i use rsync to go both ways? not just one way. basically what it needs to go is:
1) upload nieuw files from FreeNAS to synology
2) download nieuw files from synology to FreeNAS
3) remove files that have been removed on the synology side
4) remove files that have been removed on the FreeNAS side
5) leave files alone that exists even though dates mismatch!
Point 5 is perhaps the most important! as we both have a lot of files from the previous sync, so a lot is already in both sides but with different dates as from copying.
I need to make a rsync job for about 4 folders including around 10 TB total. The plan is that it runs once a day or something... its not super important data as it mostly movies, games, programs and operating system iso's, i dont know about rsync but the programs folder includes over 1 million files (FTD memorial forum... yeah... old shit man :) ) so things need to be able to handle a lot of stuff.
So now the question... how can i go about this the easiest way? I know synology had rsync as well but when we tried to work with modules, it only worked one way.(back then)
The thing is, that on the synology side, there has to be as less manual tweaking as possible. If possible even no tweaking, just sftp on that side.
So is there anyone that has experience with setting something like this up?
Also maybe a small note: Do i have to have the user on my local side that is needed to login to synology? my local account is sander and my ssh account on synology is Sander but with upper case and a different password. how is this going to work?
EDIT:
For now im trying again with the ssh key way... i made a user that is exacly the same as my account on the synology box. I made a key using: ssh-keygen and after enabling a autentication manager service thing, i got my key. now for uploading it to synology, i get premission denied. i did:
Code:
ssh-copy-id -p (portnumber) (path to key-file) Sander@(remote address of synology)
On the other hand, normal login to ssh also wont let me login... and i know the password is correct as i can login with filezilla just fine.
Last edited by a moderator: