John Drescher wrote: > On Wed, Oct 21, 2009 at 10:15 AM, Gabriel - IP Guys > <gabr...@impactteachers.com> wrote: > >> >>> -----Original Message----- >>> From: John Drescher [mailto:dresche...@gmail.com] >>> Sent: 21 October 2009 14:04 >>> To: Martens, Craig (NIH/NIAID) [C]; bacula-users >>> Subject: Re: [Bacula-users] bacula and NAS >>> >>> >>>> Hi, I have a very simple question. Can bacula be used to back up to >>>> >>> a NAS >>> >>>> instead of a tape drive? >>>> >>>> >>> Yes. >>> >>> John >>> >>> >> Oh John!!! Come on! Admittedly did make me chuckle! I think the question >> Craig wanted to ask is >> >> "How to I configure my NAS as a device for Bacula-SD to use" :) >> >> Which, coincidentally, is the question I was going to ask! >> >> > > That would not be a "simple" question then. At least not a simple > answer. Your best bet is to search the archives. There is discussion > about this all the time. Look for "virtual disk changer" and check the > documentation for "automatic volume recycling" particularly the 4 > options that limit the volume size or usage. > > John >
There are multiple answers, of course, but this one is not too complicated. 1. Export a NFS share on the NAS named, say, 'backup_storage', and give read/write access to user 'bacula' group 'disk' (or whatever user.group Bacula SD is running as). 2. Install autofs on the machine running Bacula SD. For many distributions, the default install of autofs allows automounting of NFS shares under directory /net. For example, accessing /net/nas.domain.name/backup_storage will automount the NFS share 'backup_storage' on NFS server 'nas.domain.name' as and when needed at mountpoint /net/nas.domain.name/backup_storage. 3. Configure a DeviceType=File device in bacula-sd.conf exactly as you would for a device using a directory on local disk storage. Use ArchiveDevice='/net/nas.domain.name/backup_storage' to tell SD where this device's volume files are located. The Automated Disk Backup section of the Bacula documentation at http://www.bacula.org/3.0.x-manuals/en/concepts/concepts/Automated_Disk_Backup.html shows one way to use disk storage. The Bacula configuration for using an autofs mounted NFS share is exactly the same. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users