Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 638  / 2 Years ago, tue, february 1, 2022, 2:35:42

Every time I run rsync to backup a blockchain, it starts from the beginning and tries to sync the whole thing, every time, even though there may only be a few blocks worth of data that is new. The rsync man page says, "It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination," but I cannot figure out how to get it to only update the new info that has been added to the blockchain. As the chain is very large, it is ridiculous to keep copying the whole thing every day. Can rsync backup only new data, and if so, how can I tell it to do so?


This what I am using:


> rsync -avz --exclude-from=/exclude/file -e ssh /from/file [email protected]:/backup/file

More From » backup

 Answers
0

According to this article, a combination of the following properties should work for you:


--partial --inplace --append

In your case that would be:


rsync -avz --partial --inplace --append --exclude-from=/exclude/file -e ssh /from/file [email protected]:/backup/file

It also makes sense to me that a blockchain would only need "appended" data, i.e. added blocks.


In addition, --progress can be added as well.


[#1821] Tuesday, February 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
landarre

Total Points: 254
Total Questions: 96
Total Answers: 109

Location: Burundi
Member since Sun, Apr 16, 2023
1 Year ago
landarre questions
Wed, Jun 15, 22, 23:53, 2 Years ago
Mon, Dec 6, 21, 07:57, 2 Years ago
Sun, Jan 29, 23, 01:41, 1 Year ago
Sun, Aug 28, 22, 13:17, 2 Years ago
;