aspose file tools*
The moose likes Meaningless Drivel and the fly likes sync two systems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "sync two systems" Watch "sync two systems" New topic
Author

sync two systems

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I have a desktop & a laptop on my desk. While desktop is connected to network (LAN), laptop isn't.
Give me some creative idea on how do I keep these two machines in sync.

Thanks.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

By "creative" you mean meaningless?
If not then this question goes to General computing...


SCJP, SCWCD.
|Asking Good Questions|
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14153
    
  18

Remove the laptop's harddisk, connect it to a harddisk interface cable in the desktop, copy the contents to or from the laptop harddisk, and put the harddisk back in the laptop.

Hey, you asked for creative ideas, not practical ones?!

A bit more practical is buying a network cable and connecting the laptop to the network, so that you can easily copy files to and from it from the desktop.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Arvind Mahendra
Ranch Hand

Joined: Jul 14, 2007
Posts: 1162
get an ext. hd and use the sync feature the s/w shd come with.


I want to be like marc
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

use rsync to synchronize the directories that you care about. Do not attempt to synchronize all directories, unless you *know* that the hardware is identical. And maybe not even then.

setup a cron job to run the rsync automatically.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14153
    
  18

But Pat, do you think that's going to work if the laptop is not connected to the network?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

Jesper Young wrote:But Pat, do you think that's going to work if the laptop is not connected to the network?


Wow, sorry, missed that part.

I can't imagine a computer these days not being connected to a LAN and onto the greater Internet.

Even cell phones are connected to the Internet
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Jesper Young wrote:Remove the laptop's harddisk, connect it to a harddisk interface cable in the desktop, copy the contents to or from the laptop harddisk, and put the harddisk back in the laptop.


The last thing I'd do...


A bit more practical is buying a network cable and connecting the laptop to the network, so that you can easily copy files to and from it from the desktop.


Can't do that due to some reason.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Arvind Mahendra wrote:get an ext. hd and use the sync feature the s/w shd come with.


This one is cool but I'll have to buy external hard drive.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Can there be a software provides:
1. I configure the folders I care about, once.
2. It creates some kind of file, when I run it.
3. I take that file through USB drive or something & copy it in my laptop.
4. It sync the folders in my laptop (incremental or just the delta), when I run it again in my laptop.

I think, sync mentioned by Arvind does similar kind of job...
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Amit Ghorpade wrote:By "creative" you mean meaningless?
If not then this question goes to General computing...


You can move it into general computing but I am okay with wired kind of ideas.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

ankur rathi wrote:
Jesper Young wrote:A bit more practical is buying a network cable and connecting the laptop to the network, so that you can easily copy files to and from it from the desktop.


Can't do that due to some reason.


In that case I would recommend dropping the laptop into wet concrete. Make sure the laptop is completely submerged. When the concrete hardens, you won't need to ask the question any more.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

ankur rathi wrote:Can't do that due to some reason.


This is starting to sound like an overly constrained problem.

You could use something like Laplink, which can use USB or serial cables, and if you buy the right version, the cables are included in the box. But from a practical view, its all the same whether you use Ethernet cable, WiFi, or special LapLink cables. Its a network connection, and then you can use either general software such as rsync or "scp" or the LapLink software.

From a practical view, its all the same.

You could use "sneakernet" or even "floppynet" which just means plugging in a USB dongle or floppy, copy the files, remove it, plug into second computer and copy again. But its really isomorphic.

With any connection, you want to use checksums rather than file system dates, and you need to detect and handle when some files are changed on each system. tools like CVS, SVN and GIT do this, but they assume a network.

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Paul Clapham wrote:
ankur rathi wrote:
Jesper Young wrote:A bit more practical is buying a network cable and connecting the laptop to the network, so that you can easily copy files to and from it from the desktop.


Can't do that due to some reason.


In that case I would recommend dropping the laptop into wet concrete. Make sure the laptop is completely submerged. When the concrete hardens, you won't need to ask the question any more.



Can't do that due to some reason.

 
wood burning stoves
 
subject: sync two systems