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';
Aucun commentaire:
Enregistrer un commentaire