From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 136DE13877A for ; Tue, 24 Jun 2014 15:13:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AD78E087B; Tue, 24 Jun 2014 15:13:41 +0000 (UTC) Received: from uberouter3.guranga.net (unknown [78.25.223.226]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7FFE4E0870 for ; Tue, 24 Jun 2014 15:13:35 +0000 (UTC) Received: from [192.168.18.25] (unknown [212.67.108.34]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by uberouter3.guranga.net (Postfix) with ESMTPSA id C26AB82E18 for ; Tue, 24 Jun 2014 16:13:28 +0100 (BST) Message-ID: <53A99597.9060200@thegeezer.net> Date: Tue, 24 Jun 2014 16:13:27 +0100 From: thegeezer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] backup hardware setup References: <20140624144307.GA3908@solfire> In-Reply-To: <20140624144307.GA3908@solfire> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: aab144de-ed1c-433e-9c93-ea2cbece8a5a X-Archives-Hash: 092709b07c6c241d9ef408794a3743dc On 06/24/2014 03:43 PM, meino.cramer@gmx.de wrote: > Hi, > > I bought two identical external harddrives, USB 3.0, with 1 TByte each > (no SSD - the good ole mechanical ones...;). > > The intended use is for backup of longer files. The drives will > contain the same contents. > > Currently there are still "clean metal" (no partitioning, no fs). > > Data integrity and recoverability (Uhhh...that words looks wrong...) in > case of an desaster is more important than speed. > > What is the recommended way of partitioning ? > What filesystem to choose? > > > Thank you very much in advance for any help! > Best regards, > mcc > > > PS: Running vanilla kernel 3.15.1.... > > > > I do this using hard links and rsync to only copy changed data. this creates a dated folder structure that i can then rsync / cp using a livecd to baremetal and basically allows best recoverability, imho. so long as the filesystem supports hard links you are golden. you might want btrfs for this for long term storage to help in case of bitrot, but rsync should refresh the file if it is suddenly unreadable (meaning any other hard lnked versoins are also up the swanny) ymmv depending on what it is you are backing up #!/bin/bash echo 'preparing..' date=`date "+%Y-%m-%d_%H.%M.%S"` workingfolder="/mnt/usb/backupsyncs/myhost1" fromfolder="root@myhost1:/* --exclude=/var/tmp --exclude=/dev --exclude=/mnt --exclude=/opt --exclude=/proc --exclude=/sys --exclude=/usr/portage --exclude=/usr/src" echo "Date " $date echo "From " $fromfolder echo "To " $workingfolder echo "move current to be dated" mv $workingfolder/current $workingfolder/backup-$date echo "now syncing into dated folder" rsync -vz --partial --modify-window 5 -W --delete -a $fromfolder $workingfolder/backup-$date echo "cleaning up..linkcopying dated folder to " cp -al $workingfolder/backup-$date $workingfolder/current