![]() |
2009-03-20
, 22:45
|
Posts: 5 |
Thanked: 0 times |
Joined on Jan 2009
|
#1
|
![]() |
2009-03-20
, 22:54
|
|
Posts: 1,562 |
Thanked: 349 times |
Joined on Jun 2008
|
#2
|
![]() |
2009-03-21
, 01:43
|
|
Posts: 3,397 |
Thanked: 1,212 times |
Joined on Jul 2008
@ Netherlands
|
#3
|
![]() |
2009-03-21
, 03:08
|
Posts: 367 |
Thanked: 47 times |
Joined on Nov 2008
@ Brooklyn, NY
|
#4
|
![]() |
2009-03-21
, 03:24
|
|
Posts: 109 |
Thanked: 37 times |
Joined on Oct 2008
@ NYC, NY
|
#5
|
The Following User Says Thank You to fattomm For This Useful Post: | ||
![]() |
2009-03-21
, 03:29
|
Posts: 367 |
Thanked: 47 times |
Joined on Nov 2008
@ Brooklyn, NY
|
#6
|
rsync (and thus grsync) aren't a "sync" in the way you might think of it from a Palm based system (that is; syncing a calendar or a contacts list) -- those tend to have a "merge" concept, since they work on the "record" (calendar entry or contact) level.
Rather rsync works on a file level, and similar to the Palm in some ways (think "Palm overwrites computer" and "computer overwrites palm") -- there is a concept of a primary file that will win in a tie. Effectively; rsync works such that a set of files are copied remotely. From there, there is additional flags to indicate "remove a remote file if a local version doesn't exist", and "newer overwrites older".
You can specify that the remote copy is the primary, or that the local copy is - and then things are made to match up according to your preferences.
You should really check a "man rsync" in google for a reference page to go through a lot of the available knobs that can be turned ... (and make a copy of your files before experimenting ....).
![]() |
2009-03-21
, 03:58
|
|
Posts: 109 |
Thanked: 37 times |
Joined on Oct 2008
@ NYC, NY
|
#7
|
rsync --delete -val remotehost:/media/music .
--delete # delete local versions of files that have been removed remotely -v # verbose - I like chatty, you mayn't -a # "archive" - preserve owner/group/timestamps -l # if the remote is a soft-link, make the soft-link locally
![]() |
2009-03-21
, 13:10
|
|
Posts: 3,397 |
Thanked: 1,212 times |
Joined on Jul 2008
@ Netherlands
|
#8
|
The Following User Says Thank You to allnameswereout For This Useful Post: | ||