TheExplorographer Posted March 12, 2020 Share Posted March 12, 2020 I have two servers. I am looking to move one of them offsite as a backup server. I want to have this offsite server backup up specific shares on my home server over the internet. Couple of questions, does anyone else do this? If so, what do you use? And how did you set it up? ~Andy Quote Link to comment
Hoopster Posted March 12, 2020 Share Posted March 12, 2020 (edited) 1 hour ago, TheExplorographer said: Couple of questions, does anyone else do this? If so, what do you use? And how did you set it up? See thread below. I have been doing it with rsync scripts automated via User Scripts plugins for over two years without any issues. It took me a few days to figure out how to properly generate and make the SSH keys persistent, but, once it works, it just works. By page 2-3 of that thread I had it all figured out. It is not as daunting as it appears from the first page or so. The OP script backs up disk to disk, but since my servers do not have identical disk configurations, I modified it to backup share to share. Edited March 12, 2020 by Hoopster 1 Quote Link to comment
TheExplorographer Posted March 12, 2020 Author Share Posted March 12, 2020 Thanks for the direction. Not sure I can follow that fragmented thread as efficiently as you did. Anyone have a straight forward tutorial on how to do this? Going to give it shot, I just don't want to screw up my main server trying to wank my way through this. Quote Link to comment
TheExplorographer Posted March 12, 2020 Author Share Posted March 12, 2020 1 hour ago, Hoopster said: See thread below. I have been doing it with rsync scripts automated via User Scripts plugins for over two years without any issues. It took me a few days to figure out how to properly generate and make the SSH keys persistent, but, once it works, it just works. By page 2-3 of that thread I had it all figured out. It is not as daunting as it appears from the first page or so. The OP script backs up disk to disk, but since my servers do not have identical disk configurations, I modified it to backup share to share. Well, I gave it a shot. I open a console on server #1, verified and successfully added my remote server (on the same network) Then I ran the command again but this time with actual folders and a single file to be copied and it connects with "receiving incremental file list" and just hangs there until I CTRL+C out of it. Not sure where to go now. Quote Link to comment
Hoopster Posted March 13, 2020 Share Posted March 13, 2020 (edited) 22 hours ago, TheExplorographer said: Well, I gave it a shot. When I have some time (probably next week) I’ll see if I can whip up a quick primer. There are definitely some gotchas. Each server needs to see the other as an authorized host so you need keys generated in both directions and residing on the proper server. I hope I can remember what I did two years ago. Sent from my iPhone using Tapatalk Edited March 13, 2020 by Hoopster Quote Link to comment
TheExplorographer Posted March 13, 2020 Author Share Posted March 13, 2020 2 hours ago, Hoopster said: When I have some time (probably next week) I’ll see if I can whip up a quick primer. There are definitively some gotchas. Each server needs to see the other as an authorized host so you need keys generated in both directions and residing on the proper server. I hope I can remember what I did two years ago. Sent from my iPhone using Tapatalk Thanks man, no rush and I really do appreciate the effort here. Quote Link to comment
MisterWolfe Posted March 13, 2020 Share Posted March 13, 2020 Have you thought of using a VPN between the two servers? Then you could potentially mount shares via unassigned devices and make cron jobs that you could use with rsync. The main downside I can see here might be transfer speed with a VPN, which partially depends on the cpu's in both your machines. Quote Link to comment
TheExplorographer Posted March 14, 2020 Author Share Posted March 14, 2020 7 hours ago, MisterWolfe said: Have you thought of using a VPN between the two servers? Then you could potentially mount shares via unassigned devices and make cron jobs that you could use with rsync. The main downside I can see here might be transfer speed with a VPN, which partially depends on the cpu's in both your machines. No I haven't. Initially I was trying to go with Resilio Sync Docker..but I cannot get that to connect properly without going through a really slow proxy. Right now, for the initial copying of the folders I want to keep the two machines local. After the base copy is done, one machine, will be moved offsite and just receive file refreshes and new files. This is my hope at least. I am NO linux pro at all..just a newb. My experience is in Windows and MacOS environments (so I guess a little linux). As far as code goes, php, cgi, I know my way around..but this stuff I am learning. (And I am old...so the learning is slow) Quote Link to comment
Helmonder Posted March 20, 2020 Share Posted March 20, 2020 Just run the SYNCTHING docker on both machines.. I do this and it works fine. They have to be able to reach each other but a wireguard connection should lbe able to take care of that ... Or another VPN solution.. I used to work with Crashplan, that works to but backupping to another machine was no longer free.. Quote Link to comment
TheExplorographer Posted March 21, 2020 Author Share Posted March 21, 2020 22 hours ago, Helmonder said: Just run the SYNCTHING docker on both machines.. I do this and it works fine. They have to be able to reach each other but a wireguard connection should lbe able to take care of that ... Or another VPN solution.. I used to work with Crashplan, that works to but backupping to another machine was no longer free.. Care to share your docker setup for that? I cannot get it to create or share folders. Keeps telling me that it has no permissions..when I can verify that it does. I am setting this up on machines with existing shares/folders. Quote Link to comment
TheExplorographer Posted March 29, 2020 Author Share Posted March 29, 2020 On 3/23/2020 at 11:38 AM, Helmonder said: No problem.. Thanks. Yeah that is the setup that I am using for the docker. I guess it is something to do with the actual program configuration from the WebUI. When I try to sync a folder it tells me the folder already exists. Any ideas? Under Advanced Setting do I need to make changes to the Default Folder path? Quote Link to comment
TheExplorographer Posted March 29, 2020 Author Share Posted March 29, 2020 I got it!! It was a problem with the docker config and an alias. I had to expand the docker config to see it! Thanks! Quote Link to comment
Helmonder Posted March 29, 2020 Share Posted March 29, 2020 Make sure you set your inotify handlers high.. Nothing will go wrong if you don't, syncthing will ask for an increase when needed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.