So I took delivery of my new Maxtor M3 2Tb USB 3 drive yesterday. Still the server only has USB 2 ports so I know this is going to be still slow until I can upgrade that.
However I hooked the M3 and it powered up and connected without problems.
fdisk showed a single partition (1.8Gb) formatted as HPFS/NTFS. I moved the contents to /home/luc/Texts/Manuals or somewhere like that. It contained some backup software and the documentation apparently. Then I reformatted using ext4, and changed the partition type to Linux 0x83 (and removed the bootable flag).
Afterthat I used the UUID (from blkid) so add a new line to /etc/auto.removable and it just worked under autofs. created the backuppc directory and will use that in a new backuppc archive host.
But before that I'd like to fill the iomega HDD with some recent backup archives so that I can move that out of site. I noticed my previous attempts all failed after 20 hours exactly so after googling a bit I found out about the Client Timeout setting in Backuppc. Changed this to 48 hours and started a new archive again, from kid3 backup.
To be continued...
Affichage des articles dont le libellé est autofs. Afficher tous les articles
Affichage des articles dont le libellé est autofs. Afficher tous les articles
mardi 28 novembre 2017
dimanche 19 novembre 2017
Automounting removable USB disks for use as backuppc archive volumes
I want to be able to plug in a few (at least 2) removable HDD drives and use them to store my latest backups, so I can easily move these HDD drives offsite for additional protection against theft, fire or other catastrophic events.
#
# Maps for external HDD etc
#
iomega -fstype=ext2 :UUID=e66dd072-7a29-4021-8cea-6757bf3b566a
targa -fstype=ext3 :UUID=bd524c4e-2c59-4685-9458-74b21a9c33cd
sudo service autofs restart
Required software
sudo apt install autofs/etc/auto.master
#
# Maps for external HDD etc
#
/var/backups/backuppcv /etc/auto.removable --timeout=2
/etc/auto.removable
Currently I own two of these drives (Iomega is 1TB and Targa is 512MB). Both are quite old but I plan to add a 2TB (or a couple of them) in the near future. I did check the blkid from each of these drives then added these lines to my new auto.removable config file:#
# Maps for external HDD etc
#
iomega -fstype=ext2 :UUID=e66dd072-7a29-4021-8cea-6757bf3b566a
targa -fstype=ext3 :UUID=bd524c4e-2c59-4685-9458-74b21a9c33cd
Activation
sudo service autofs restart
Permissions
mkdir /var/backups/backuppcv/iomega/backuppc
chown backuppc:backuppc /var/backups/backuppcv/iomega/backuppc
Usage with backuppc
sudo cat arc_iomega.pl
$Conf{XferMethod} = 'archive';
$Conf{ArchiveDest} = '/var/backups/backuppcv/iomega/backuppc';
$Conf{XferMethod} = 'archive';
$Conf{ArchiveDest} = '/var/backups/backuppcv/iomega/backuppc';
Inscription à :
Articles (Atom)