- Last post
- 7 Responses
Got a new laptop for work, and I want to have about 8GB of files in sync with it and my desktop at home so I can quickly and easily run a script to update both sides with the most recent file changes.
Anyone have any good tips or rsync tutorials that are more recent than 2001?
*and I have about 8GB of files that I want to keep in sync between it and my desktop*
how about a folder on dropbox or github(if its pure code)?
I thought rsync was used between two linux servers... not desktop to desktop?
I might just end up going that route, but I'd rather not shell out the $$. I've found some articles about setting it up to work between computers on a network, and I've gotten it to work going one way, but not the other.
rsync hasn't really changed that much so any tutorial will mostly be relevant.
One tip: there is a debug switch which will tell you what would have been transferred rather actually doing it. Use this to fine tune your settings.
Dude just spend about 30mins - 1hr reading about rsync and you should be able to hack together a shell script to get it handled.
Generally, it's just...
rsync -rv [local path] user@host:/some/path
-r is recursive, -v is verbose. Run "man rsync" to read more documentation. This isn't rocket science.
And you can swap the paths around if you want to pull from remote host to your localhost. That syntax would be
rsync -rv user@host:/some/remote/path ./some/local/path
'rsync --help' provides quite a lot information.