Home » Questions » Computers [ Ask a new question ]

Incremental copy from linux to windows share

Incremental copy from linux to windows share

Using a cronjob I'm daily backing up a linux system (ubuntu) onto a windows network share so it gets picked up by our organisation's backup system.

Asked by: Guest | Views: 147
Total answers/comments: 1
Guest [Entry]

"What is the best solution to copy only
the minimal amount of data in this
situation?

You can use rsync instead of cp.

rsync will only copy what has changed.
Even when only a part of a file changes, rsync is smart enough to figure it out.

Its syntax similar to that of scp and it can preserve all meta information.

With rsync -z, data can also be compressed.

-z, --compress
With this option, rsync compresses the file data as it is sent to the
destination machine, which reduces the
amount of data being transmitted --
something that is useful over a slow
connection.

Note that this option typically achieves better compression ratios
than can be achieved by using a
compressing remote shell or a
compressing transport because it takes
advantage of the implicit information
in the matching data blocks that are
not explicitly sent over the
connection."