Frank wrote:
> Hi,
> I would like to use a samba share on a remote windows machine as storage 
> location to write backups of a linux server to.
> It's basically a nas with only smb interface. The problem is that this 
> device is turned on manually when backup is launched, then turned off 
> after it is finished, so I need to mount the samba share on the server's 
> filesystem before starting backup, then unmount it.
> I was thinking at using "Mount Command" etc directives, but they seem to 
> be focused for use with dvd's.
> Is there a way?
>   
You can use the RunScript directive in the Job resource to run a script 
before the job runs to
mount the Samba share, and then another RunScript to run a script after 
the job runs to unmount
the share.

An alternative method that has worked for me is to use autofs to 
mount/unmount Samba
shares when they are accessed. Autofs also is used to mount/unmount NFS 
shares, so by
redefining the mountpoint in autofs I can move the storage around as 
needed without making
any changes to bacula config or scripts. This has been convenient, but 
the RunScript method
is probably easier to setup if you don't already have autofs installed 
and working.

> Thanks,
> Frank
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to