From 37dae7db61ea97fd4b8c719d02a8408e07e40bfe Mon Sep 17 00:00:00 2001 From: Raymundo Date: Wed, 11 Jul 2018 12:31:04 +0000 Subject: [PATCH] Fixed typos and punctuation --- .../howtorecoverdataonhammerfs/index.mdwn | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/docs/howtos/howtorecoverdataonhammerfs/index.mdwn b/docs/docs/howtos/howtorecoverdataonhammerfs/index.mdwn index 641e7cf7..07279c18 100644 --- a/docs/docs/howtos/howtorecoverdataonhammerfs/index.mdwn +++ b/docs/docs/howtos/howtorecoverdataonhammerfs/index.mdwn @@ -5,7 +5,7 @@ filesystem(files/directories). This will also cover how to adjust history retent # Getting history records of a file -To get all history records of a file we will use hammer utility with 'history' command giving it +To get all history records of a file, we will use the hammer utility with the **history** command, giving it file name as argument. # echo "Hello" > test @@ -29,20 +29,19 @@ file name as argument. 0000000110d6ea10 04-Jan-2011 15:37:40 } -You probably wonder what are these strange hexadecimal numbers are: +You probably wonder what these strange hexadecimal numbers are: 0000000110d6e970 - 0000000110d6e9d0 - 0000000110d6ea10 + 0000000110d6e9d0 + 0000000110d6ea10 -Well, they are transaction ids. Transaction id is a 64 bit hexadecimal number used by hammer file -system to refer to historical file or directory data.You will need them to restore file to a prior -version. +Well, they are transaction IDs. A transaction ID is a 64-bit hexadecimal number used by the hammer file +system to refer to historical file or directory data.You will need them to restore a file to prior versions. #File restoring -To restore a file to a prior version we will use **undo** utility. For example lets restore the test -file to it's prior version created in previous section. +To restore a file to a prior version we will use **undo** utility. For example, let's restore the test +file to its prior version created in previous section. # hammer history test test 0000000110d66ec3 clean { @@ -51,7 +50,7 @@ file to it's prior version created in previous section. 0000000110d6ea10 04-Jan-2011 15:37:40 } -Get data that refers to transaction id and put it in test.old +Get data that refers to the transaction ID and put it in test.old # undo -o test.old -t 0x0000000110d6e9d0 test # cat test.old @@ -62,7 +61,7 @@ Get data that refers to transaction id and put it in test.old world some more data -You can aslo specify the 'd' flag and get a diff output +You can also specify the 'd' flag and get a diff output # undo -d -o test.diff -t 0x0000000110d6e9d0 test # cat test.diff @@ -77,7 +76,7 @@ You can aslo specify the 'd' flag and get a diff output To restore directory to a prior version we are going to be using **cpdup** command and special hammer notation '@@'. -first we need to get history records for the directory, to get them we are going to use **undo** utility. +first, we need to get history records for the directory, to get them we are going to use the *undo* utility. # undo -ai test test: ITERATE ENTIRE HISTORY @@ -86,8 +85,8 @@ first we need to get history records for the directory, to get them we are going # ls test testfile1 testfile2 -As you can see i already create two files in the test directory. -Now lets restore prior version of the test directory. +As you can see, I already created two files in the test directory. +Now let's restore the prior version of the test directory. # cpdup test@@0x00000001126152b0 testold # ls testold @@ -101,9 +100,10 @@ Example: However the common way of accessing history is by taking a snapshot. # Adjusting History retention -Hammer will efficiently fill your hard disk with history if you don't prune, or defrag.To cleanup and free space there is a **hammer cleanup** command it reblocks,prunes,rebalances,etc. DragonFly runs it by the default nightly via [periodic(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=periodic§ion=8). -**hammer cleanup** will access the configuration file for each filesystem, creating them if necessary. +Hammer will efficiently fill your hard disk with history if you don't prune, or defrag.To cleanup and free space there is a *hammer cleanup* command it reblocks,prunes,rebalances,etc. DragonFly runs it by the default nightly via [periodic(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=periodic§ion=8). + +hammer cleanup will access the configuration file for each filesystem, creating them if necessary. The format of the configuration file(**hammer viconfig** filesystem): @@ -132,6 +132,6 @@ For instance dedup 1d 30m means, that once per day, your hammer file systems will be deduplicated for up to 30 minutes. -Reblocking will reorder all elements and thus defragment the file system and free space for reuse. And do a montly recopy run. +Reblocking will reorder all elements and thus defragment the file system and free space for reuse. And do a monthly recopy run. You can read the full details HAMMER(8). -- 2.41.0