{"id":272,"date":"2006-07-16T21:17:16","date_gmt":"2006-07-17T02:17:16","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=272"},"modified":"2006-07-16T21:17:16","modified_gmt":"2006-07-17T02:17:16","slug":"linux-sync","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=272","title":{"rendered":"linux sync"},"content":{"rendered":"<p>Correct approach for this is to use rsync:<\/p>\n<p>rsync -auv directoryA directoryB<\/p>\n<p><!--more--><\/p>\n<p>Correct approach for this is to use rsync:<\/p>\n<p>rsync -auv directoryA directoryB<\/p>\n<p>Have a look at:<\/p>\n<p>man rsync, and ensure that you totally understand the settings given:<\/p>\n<p>a &#8211; archive<br \/>\nu &#8211; update only &#8211; do not overwrite newer files<br \/>\nv &#8211; verbose<\/p>\n<p>Basically checks everything and updates if any file is older.<\/p>\n<p>Next problem is that you are worried about using all the resources. You need to check resources being used:<\/p>\n<p>top<\/p>\n<p>If resources are getting short then you need to:<\/p>\n<p>ps -ef<\/p>\n<p>to find the process id of the rsync process, and then:<\/p>\n<p>kill the process and then run the above program undeer nice:<\/p>\n<p>nice 19 &#8220;rsync -auv directoryA directoryB&#8221;<\/p>\n<p>This will run the rsync command with reduced priority. You can pick any number between -20 (highest priority) to 19 lowest priority.<\/p>\n<p>Because the above command works as a synchronising process, you can do the process in bits. Do an hours run, kill the process, restart next evening etc, and it will incrementally do what you want:<\/p>\n<p>HTH:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Correct approach for this is to use rsync: rsync -auv directoryA directoryB<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}