

Useful for inclusion in scripting when the terminal output is not required
CODE 2 FOLDER SYNC DOWNLOAD
It can also do a quick hash check of files on the source and destination to determine whether or not it needs to transfer a new copy, possibly saving significant time and bandwidth. To accomplish this efficiently, by default, it will check the modification times of files.

Also, rsync provides the ability to synchronize a directory structure (or even a single file) with another destination, local or remote. It checks to see if files exist in the destination before sending them, saving bandwidth and time for everything it skips.
CODE 2 FOLDER SYNC UPDATE
The rsync tool can recursively navigate a directory structure and update a second location with any new/changed/removed files. One of the most useful tools in a sysadmin’s belt for this kind of task is rsync. Inspired by lanzz's comments, another idea could be to run rsync at startup to backup the content of a folder under Ubuntu One, and start Ubuntu One only after rsync is completed.Admins (or normal users) often need to back up files or keep them in sync between multiple places (including local and remote) without transferring and overwrite all files on the target every time. If anything goes wrong and U1 delete my data on B, I always have them on A. In this manner any change in A will be appled to B, which will be detected from U1 and synchronized to the cloud. The I simply keep synchronized "folder B" with Ubuntu One.I need it to be one-way only from A to B any changes to B must not be applied to A. I need the answer of my current question to create a one-way sync of "folder A" to "folder B" ( cron a script with rsync? could be?).So I thought to add a step further to keep a backup copy of my data: I used Ubuntu One to synchronize data between my computers, and after a while something went wrong and all my data was lost during a synchronization. It should work automatically in this way: whenever I create, modify, or delete stuff from the original folder those changes should be automatically applied to the sync-folder.įinal goal is to have a separated real-time backup copy, without the use of symlinks or mount. I would like to have a synchronized copy of one folder with all its subtree.
