1 |
thegeezer <thegeezer@×××××××××.net> [14-06-24 17:16]: |
2 |
> On 06/24/2014 03:43 PM, meino.cramer@×××.de wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > I bought two identical external harddrives, USB 3.0, with 1 TByte each |
6 |
> > (no SSD - the good ole mechanical ones...;). |
7 |
> > |
8 |
> > The intended use is for backup of longer files. The drives will |
9 |
> > contain the same contents. |
10 |
> > |
11 |
> > Currently there are still "clean metal" (no partitioning, no fs). |
12 |
> > |
13 |
> > Data integrity and recoverability (Uhhh...that words looks wrong...) in |
14 |
> > case of an desaster is more important than speed. |
15 |
> > |
16 |
> > What is the recommended way of partitioning ? |
17 |
> > What filesystem to choose? |
18 |
> > |
19 |
> > |
20 |
> > Thank you very much in advance for any help! |
21 |
> > Best regards, |
22 |
> > mcc |
23 |
> > |
24 |
> > |
25 |
> > PS: Running vanilla kernel 3.15.1.... |
26 |
> > |
27 |
> > |
28 |
> > |
29 |
> > |
30 |
> |
31 |
> I do this using hard links and rsync to only copy changed data. |
32 |
> this creates a dated folder structure that i can then rsync / cp using a |
33 |
> livecd to baremetal and basically allows best recoverability, imho. |
34 |
> so long as the filesystem supports hard links you are golden. |
35 |
> you might want btrfs for this for long term storage to help in case of |
36 |
> bitrot, but rsync should refresh the file if it is suddenly unreadable |
37 |
> (meaning any other hard lnked versoins are also up the swanny) |
38 |
> ymmv depending on what it is you are backing up |
39 |
> |
40 |
> #!/bin/bash |
41 |
> echo 'preparing..' |
42 |
> date=`date "+%Y-%m-%d_%H.%M.%S"` |
43 |
> workingfolder="/mnt/usb/backupsyncs/myhost1" |
44 |
> fromfolder="root@myhost1:/* --exclude=/var/tmp --exclude=/dev |
45 |
> --exclude=/mnt --exclude=/opt --exclude=/proc --exclude=/sys |
46 |
> --exclude=/usr/portage --exclude=/usr/src" |
47 |
> |
48 |
> echo "Date " $date |
49 |
> echo "From " $fromfolder |
50 |
> echo "To " $workingfolder |
51 |
> |
52 |
> echo "move current to be dated" |
53 |
> mv $workingfolder/current $workingfolder/backup-$date |
54 |
> |
55 |
> echo "now syncing into dated folder" |
56 |
> rsync -vz --partial --modify-window 5 -W --delete -a $fromfolder |
57 |
> $workingfolder/backup-$date |
58 |
> |
59 |
> echo "cleaning up..linkcopying dated folder to <current>" |
60 |
> cp -al $workingfolder/backup-$date $workingfolder/current |
61 |
> |
62 |
> |
63 |
> |
64 |
|
65 |
Hi, |
66 |
|
67 |
thank you for your reply! :) |
68 |
|
69 |
...I am sure, whether I want btrfs. On the net I found |
70 |
for example this: |
71 |
http://www.phoronix.com/scan.php?page=news_item&px=MTY1MDU |
72 |
|
73 |
with sentences like: |
74 |
"The Btrfs file-system changes for the Linux 3.15 kernel mostly deal |
75 |
with bug fixes and performance fixes while some corruption fixes are |
76 |
also expected to come." |
77 |
|
78 |
...sounds a little different to "stable" I think... |
79 |
|
80 |
What do you think? |