Hello!

i try to backup a remote w2k server using the "Run Before Job" parameter
to build a ssh tunnel to the bacula-fd on the remote server with the
following script

backup:~# cat /etc/bacula/scripts/mk_ssh2w2k.sh
#!/bin/bash

# dig a tunnel to the remote office server
start-stop-daemon --start -b --exec /usr/bin/ssh -- -N -2 -o
"StrictHostKeyChecking no" -i /etc/bacula/bacula-ssh-key -L
9112:192.168.100.100:9102 [EMAIL PROTECTED]

exit 0


and the following job definition:

Job {
  Name = "srv-remote"
  Type = Backup
  Client = srv-remote
  FileSet = "Full Set Windows"
  Schedule = "WeeklyCycle"
  Storage = FileStorage-srv-remote
  Messages = Standard
  Pool = Default
  Full Backup Pool = File-Full-Pool
  Incremental Backup Pool = File-Inc-Pool
  Differential Backup Pool = File-Diff-Pool
  Write Bootstrap = "/var/lib/bacula/srv-remote.bsr"
  Run Before Job = "/etc/bacula/scripts/mk_ssh2w2k.sh"
  Run After Job = "/etc/bacula/scripts/rm_ssh2w2k.sh"
}


for the client:

Client {
  Name = srv-remote
  Address = local-backupserver
  FDPort = 9112                   
  Catalog = MyCatalog
  Password = "dir-pass"             
  File Retention = 60 days
  Job Retention = 6 months          
  AutoPrune = yes                   
}


the script builds the tunnel succesfull (but only with using
start-stop-daemon, nohup doesn't work...), but i get the following
messages on the director:

18-Mar 15:49 local-backupserver: No prior Full backup Job record found.
18-Mar 15:49 local-backupserver: No prior or suitable Full backup found.
Doing FULL backup.
18-Mar 15:49 local-backupserver: Start Backup JobId 39,
Job=srv-remote.2005-03-18_15.49.17
18-Mar 15:48 srv-remote: srv-remote.2005-03-18_15.49.17 Fatal error:
Failed to connect to Storage daemon: local-backupserver:9103
18-Mar 15:48 srv-remote: srv-remote.2005-03-18_15.49.17 Error: ..\lib
\../../lib/bnet.c:685 gethostbyname() for host "local-backupserver"
failed: ERR=Authoritative answer for host not found.
18-Mar 15:49 local-backupserver: srv-remote.2005-03-18_15.49.17 Fatal
error: Socket error from Filed on Storage command: ERR=No data available



hm. which application want's to connect to the bacula-sd which is
running at the same machine as the director (local-bachupserver:9103):

the director or the bacula-fd on the remote w2k server to which the
director connects via the ssh tunnel?

on the w2k server the name local-backupserver is not known nor kan the
bacula-sd be reached through the (2) firewalls, one local and one
remote...


how can i setup a backup system to a remote system with ssh tunnels? or
is this not possible with bacula?

thx for any hint,

Chris



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to