Rsync out of memory

Posted: 18/12/2012 in Shell tips

Do you have any problems when you use rsync to create incremental backups of your files?
Rsync uses a considerable amount of memory because of the recursive algorithm. The recursive algorithm that is used is an incremental scan that begins the file transfer after the scanning of the first few directories have been completed. If you use a VERY low memory vps for your backups you might have problems.
Incremental recursion can be disabled using the

--no-inc-recursive

option or its shorter

--no-i-r

You also have to read these:
https://rsync.samba.org/FAQ.html#4
https://rsync.samba.org/FAQ.html#5

Advertisements
Comments
  1. ciano says:

    Actually, it is the opposite: see http://rsync.samba.org/FAQ.html#4 and the –recursive option description in the rsync man page. You *should* use the incremental recursive option and also make sure that other options are not disabling it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s