How can I sync my residence folder over network and also net?

I utilize my laptop computer with Ubuntu - desktop computer to do all my job, yet I additionally have a reduced - end desktop computer over at my workplace simply resting there. I've determined I'm mosting likely to install Ubuntu - server on it and also utilize it to mirror my whole laptop computer residence folder, to make points less complicated when I determine to layout my laptop computer is tough - disk.

Whenever I'm at job, both equipments are attached to a network and also connect conveniently (and also high - rate) using ssh. When I'm not at the workplace, the desktop computer is still obtainable using ssh. Preferably, the syncing would certainly happen instantly behind-the-scenes, whenever I transform something. It just requires to be one means: the adjustments I make on the laptop computer need to be synced over to the server, yet the inverse is not essential.

I recognize there is software for this around, my inquiry is: What software can I make use of to attain the above purposes as well as additionally maximize neighborhood - network rates when I'm at job? Given that I'll occasionally manage huge documents, the syncing procedure requires to become aware that both computer systems are sharing a neighborhood network, and afterwards capitalize on that (as opposed to constantly syncing via the net).

Simply to be clear, over - the - network syncing is in fact more vital to me below than over - the - net syncing. I preferably the software would certainly examine if the previous is readily available and also, otherwise, attempt the last ; yet if that is not feasible, the first instance is my top priority.

Hope this isn't also long. Many thanks beforehand.

0
2019-05-18 21:19:04
Source Share
Answers: 4

There is no full, pre - packaged remedy to your trouble that I recognize of. You possibly need to write some tiny manuscript on your own for that.

The syncing itself can be done by rsync, as currently clarified by Riccardo Murri. Rsync just moves the altered components of documents, so it is excellent for this job.

You can make use of the NetworkManagerDispatcher to execute manuscripts on connection/disconnection of a network user interface. So you can write a manuscript that examines if you get on the proper network and afterwards calls rsync. In this manner your information would certainly be instantly synced when you connect to your firm network.

To occasionally sync your information you can make use of cron, as currently stated.

You need to additionally take into consideration protection when making use of rsync using ssh. To integrate without customer treatment you'll require a passwordless keyfile. Any person that has this keyfile can get to the server it comes from. I would highly advise to secure your residence folder to shield the information on the note pad and also on the server.

0
2019-05-21 05:08:19
Source

DropBox | DropBox @ SuperUser http://www.dropbox.com/help/137

DropBox need to be excellent in your instance, works with Linux, mac, windows, very easy arrangement and also monitoring.

Download DropBox

https://superuser.com/questions/147315/dropbox-to-sync-nix-home-folders

http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders

Have a checked out - it does sustain syncing using symlinks and also if there are particular doc, graphics, spread sheets you need to sync - you still can keep a duplicate of them in dropbox or completely conserve them in dropbox area to conserve the problem.

0
2019-05-21 05:04:18
Source

If you can just connect to your workplace server using SSH, after that your ideal selection is to make use of rsync: it can make use of SSH as a transportation method and also makes use of a clever algorithm to speedup the transfer of huge documents, by sending out just the transformed blocks.

Given that you just require one - means synchronization, simply set up passwordless SSH verification from your laptop computer to the workplace server, and afterwards you can start with a command as straightforward as:

rsync -e ssh -a $HOME/ [email protected]:

including --include and also --exclude alternatives to improve the checklist of files/directory that you intend to integrate. As an example, moving program setups (" dot documents") can be high-risk if both computer systems do not run the very same OS (very same variation). My pointer is to start by leaving out all "dot documents" (so, usage --exclude="$HOME/.[a-z]*") and afterwards uniquely add the arrangement directory sites of programs that can securely be shared (this. needs to be seen on a program by program basis). On top of that, internet. internet browser cache and also $HOME/.cache can constantly be left out. See the. " FILTER RULES" area in the rsync male web page for a described. conversation of the include/exclude regulations syntax.

Nonetheless, rsync does not have a "continual - procedures" setting, so you. will certainly need to run it occasionally from your. crontab.

0
2019-05-21 04:34:03
Source

I would certainly recommend making use of rdiff - back-up over rsync. It is virtually simply rsync+npls.

unlike rsync which simply a 1 - 1 mirror that moves diffs, rsync has a background device. So if you messed up and also removed something vital, you can change back to a week earlier and also get it back.

On the ubuntu "server" you simply require to have ssh going to proper - get install rdiff - back-up.

on the customer. I would certainly either run this by hand. or using a crontab.

#!/bin/bash

  #backup.sh

  rdiff-backup -v5 --exclude path-to-annoyingfile  /home/user/ hostname::/media/data/snapshots/laptop 
  ## this will cleanup any backups older then 2weeks.  Adjust this as needed.
  rdiff-backup --remove-older-than  2W --force  hostname::/media/data/snapshots/laptop


  #!/bin/bash
  ##Restore.
  rdiff-backup -v5 --restore-as-of now --force [email protected]::/media/data/snapshots/laptop  /home/user

If you open your port 22 to the net. you need to have the ability to run the very same manuscript regardless. simply have it your hostname willpower in your area to your neighborhood IP.

ie. backupSrv.penguins.org would certainly settle to the exterior IP of. 2.3.4.5. yet inside your lan: to 192.168.1.253

0
2019-05-21 04:14:36
Source