1 |
On 2/8/21 5:38 am, Frank Steinmetzger wrote: |
2 |
> Am Sun, Aug 01, 2021 at 11:46:02AM +0800 schrieb William Kenworthy: |
3 |
> |
4 |
>>>> And you are storing several machines into a single repo? The docs say this |
5 |
>>>> is not supported officially. But I have one repo each for /, /home and data |
6 |
>>>> for both my PC and laptop. Using a wrapper script, I create snapshots that |
7 |
>>>> are named $HOSTNAME_$DATE in each repo. |
8 |
>>> Basicly yes: I use a once per hour snapshot of approximately 500Gib of |
9 |
>>> data on moosefs, plus borgbackups 3 times a day to individual repos on |
10 |
>>> moosefs for each host. 3 times a day, the latest snapshot is stuffed |
11 |
>>> into a borg repo on moosefs and the old snapshots are deleted. I |
12 |
>>> currently manually push all the repos into a borg repo on the USB3 SMR |
13 |
>>> drive once a day or so. |
14 |
>>> |
15 |
>>> 1. rsync (and cp etc.) are dismally slow on SMR - use where you have to, |
16 |
>>> avoid otherwise. |
17 |
>>> |
18 |
>>> forgot to mention |
19 |
>> 1a. borgbackup repos are not easily copy'able - each repo has a unique |
20 |
>> ID and copy'ing via rsync creates a duplicate, not a new repo with a new |
21 |
>> cache and metadata which depending on how you use can cause |
22 |
>> corruption/data loss. Google it. |
23 |
> Yup. Today I did my (not so) weekly backup and rsynced the repo to the new |
24 |
> drive. After that I wanted to compare performance of my old 3 TB drive and |
25 |
> the new SMR one by deleting a snapshot from the repo on each drive. But Borg |
26 |
> objected on the second deletion, because “the cache was newer”. But that’s |
27 |
> okay. I actually like this, as this will prevent me from chaning two repos |
28 |
> in parallel which would make them incompatible. |
29 |
> |
30 |
Keep in mind that both repos have the same ID - you should also rsync |
31 |
the cache and security directories as well as they are now out of sync |
32 |
(hence the warning). Be very careful on how you do this - you are one |
33 |
step away from losing the while repo if the cache gets out of sync. The |
34 |
docs warn against rsyncing two repos and then using them at the same |
35 |
time for a good reason. |
36 |
|
37 |
BillK |