LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync reduce cpu usage (https://www.linuxquestions.org/questions/linux-software-2/rsync-reduce-cpu-usage-327130/)

dtra 05-25-2005 08:04 PM

rsync reduce cpu usage
 
hi all

we're using rsync to backup our web server at the moment using it in a cron job
the server we are using to receive all the sync files is a live but not heavily used linux machine
but rsync still takes up more resources than we want it to
it takes up to 95% (fluctuating) cpu load and a fair bit of memory too

the cron job uses
Code:

nice -19 rsync -a user@example.com:/path/to/webserver /local/backup
but that doesn't seem to do anything, is there anyway to make it use like 5% cpu or something?

one more thing, on the server we are getting the files from, max connections is set to 1 in rsyncd.conf
but when i go to top on the backup server, i can see several instances of rsync running
eg. every twenty minutes a new rsync starts running
that's not how it's meant to work, does anyone know how i can make it so that
if one rsync instance is still going, then the next one shouldn't start up?

thanks
dave


All times are GMT -5. The time now is 11:34 AM.