On 28/01/2013 07:31, Jeffrey Race wrote:
I've designed my backup system around this ap but have been unable
to figure out the command-line switches.
[...]
Searching online resources suggests one must move all, overwriting
existing files, wasting time in some situations.
I also heavily utilize and recommend rsync.
I use it for most of my copying and backups on *nix and windows.
There are a ton of switches and different ways of using rsync.
What problem are you having? Have you looked at any of the existing
tutorials? It is a powerful tool, but unfortunately that power
comes at the price of some complexity.
Remember you can always use -n to do a dry run to see what it will do.
On 1/27/2013 8:29 PM, STeve Andre' wrote:
Except, he wanted to avoid over writing existing files.
rsync by default will compare file attributes (modification time and
file size) and will not copy files that appear to be the same.
If the use case is backup, it does what you want.
If the file exists on the destination, but is different, rsync
will attempt to only send the differences over the wire and not
the entire file. (The algorithm for this was the author's thesis project.)
If only the permissions are different, it will not send the file.
There is an option -u to not overwrite files that are newer on the
destination if you are trying to do a merge, as opposed to a backup.
On 01/27/13 20:18, Chow Loong Jin wrote:
I personally memorize this incantation...
rsync -Pavz /path/to/src/ /path/to/dest/
That's a good set. I recommend using -i so you can see a report
about what it thinks is different (permissions, ownership, time, size)
I usually do a dry-run to get a report of what rsync will do:
rsync -nuaiv /path/to/src /path/to/dest
Note: the trailing slashes are *significant* and can cause confusion.
(The trailing slash tells it send the files without the directory name.)
This also means rsync is also a pretty effective directory comparison tool.
Is there an easy setup of a Windows based rsync? So far I have
not found one that I can give a user and have them set it up on
their own.
By easy do you mean a GUI? I haven't seen one. There is other stuff
built on top of rsync (or it's libraries) like rdiff that was mentioned
earlier.
I usually wind up writing small scripts for specific tasks.
Hope this helps,
--Rob
_______________________________________________
Thinkpad mailing list
[email protected]
http://stderr.org/cgi-bin/mailman/listinfo/thinkpad