Rsync

From OLPC

Jump to: navigation, search


NOTE: The contents of this page are not set in stone, and are subject to change!

This page is a draft in active flux ...
Please leave suggestions on the talk page.

This command is run in the standard Linux environment via the Terminal Activity. The GUI will probably not integrate comfortably with the XO Laptop's Sugar environment. Your user experience may vary considerably depending on the established environment and the other programs running on the laptop, may need re-installation after an OS Update. See the Linux software category for other commands.

Contents


LINUX COMMAND

rsync

A common linux command included with standard XO Laptop base linux software. Command function to copy or move files from one remote location to another (similar to cp, or scp commands). Offers many options for controlling which files, and behaviors of the transferring process (i.e. compression, secure/ssh, backups, etc)

OLPC developers frequently use RSYNC, and is found in many of the olpc scripts.


Functions

Basic command:

$ rsync (OPTIONS) /SOURCE /DESTINATION

Examples

$ rsync --update --recursive --times --filter="include *.jpg" /media/SOURCE /media/DESTINATION

This has the added 'magic of rsync' that it can be ran multiple times, and copy over only the newer '.jpg' files which have changed.

If one wants to 'delete' the files after the moving over, add option "--remove-sent-files". There are also options for "--verbose", "--progress", and "--stats", if you want more information on the progress of command.

Using option "--dry-run" would show actions without actually doing the request, good for testing scripts during development.

Install Notes

  • Comes standard with all XO Laptop distributions.

Troubleshooting

  • rsync connects on TCP and UDP port 873. [1]

References

February 10th, 2008 Rsync version 3.0.0pre9 is now available for release testing.

Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox