[Bacula-users] Could not stat - Windows permission problems
2008-07-15 04:52:32
Hello list,
looks like I need some help here.
I am backing up our Exchange server by first exporting all mailboxes
with ExMerge to separate .pst-files and then backing those files up
with bacula. The exported pst files are also being copied to our
fileserver where they are included in our weekly backup to tape.
bacula-fd is running as domain-admin on our Windows 2003 SBS. This is
proven by calling "whoami" in the Client -Run-Before-script.
All Mailboxes get exported and copied quite fine, still the actual
backup crashes with:
Could not stat D:/Backup/Exchange Backup/: ERR=Zugriff verweigert (Access denied)
This is my job-def:
Job {
Name = "Daily Exchange Backup"
Type = Backup
Level = Full
Client = wefis-server1-fd
FileSet = "Exchange-Backup"
Schedule = "Daily Full Harddisk"
Storage = File
Pool = Default-Harddisk
Messages = Standard
Client Run Before Job = D:\Backup\Skripte\exmerge-all-to-pst-lokal.cmd
}
This is the FileSet:
FileSet {
Name = Exchange-Backup
Include {
File = "D:/Backup/Exchange Backup/"
Options {
}
}
}
This is the Client-Run-Before script:
whoami
d:
cd D:\Backup\Exchange Backup
del *.pst
echo "Exporting Mailboxes to PST-Files"
C:\Programme\Exchsrvr\bin\exmerge.exe -B -D -F
D:\Backup\Skripte\ExMerge.ini
echo "Done exporting"
echo "Copying exported mailboxes to Fileserver"
copy /Y *.pst \\192.168.1.20\daten\Backup\Exchange
echo "Done copying. Starting Backup"
This is the output of the job:
14-Jul 21:00 WEFIS_bacula-dir JobId 71: Start Backup JobId 71, Job=Daily_Exchange_Backup.2008-07-14_21.00.20
14-Jul 21:00 WEFIS_bacula-dir JobId 71: Created new Volume "Vol0071" in catalog.
14-Jul 21:00 WEFIS_bacula-dir JobId 71: Using Device "FileStorage_SATA-RAID1-MD1"
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: run command "D:\Backup\Skripte\exmerge-all-to-pst-lokal.cmd"
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: C:\WINNT\system32>whoami
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: wefisinnovidgmb\administrator
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: C:\WINNT\system32>d:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\>cd D:\Backup\Exchange Backup
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>del *.pst
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>echo "Exporting Mailboxes to PST-Files"
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: "Exporting Mailboxes to PST-Files"
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 20:58 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>C:\Programme\Exchsrvr\bin\exmerge.exe -B -D -F D:\Backup\Skripte\ExMerge.ini
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>echo "Done exporting"
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: "Done exporting"
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>echo "Copying exported mailboxes to Fileserver"
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: "Copying exported mailboxes to Fileserver"
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>copy /Y *.pst \\192.168.1.20\daten\Backup\Exchange
14-Jul 21:37 wefis-server1-fd JobId 71: ClientRunBeforeJob: user1.PST
14-Jul 21:38 wefis-server1-fd JobId 71: ClientRunBeforeJob: user2.PST
14-Jul 21:38 wefis-server1-fd JobId 71: ClientRunBeforeJob: user3.PST
.
.
.
14-Jul 21:40 wefis-server1-fd JobId 71: ClientRunBeforeJob: user22.PST
14-Jul 21:41 wefis-server1-fd JobId 71: ClientRunBeforeJob: 22 Datei(en) kopiert.
14-Jul 21:41 wefis-server1-fd JobId 71: ClientRunBeforeJob:
14-Jul 21:41 wefis-server1-fd JobId 71: ClientRunBeforeJob: D:\Backup\Exchange Backup>echo "Done copying. Starting Backup"
14-Jul 21:41 wefis-server1-fd JobId 71: ClientRunBeforeJob: "Done copying. Starting Backup"
14-Jul 21:43 WEFIS_bacula-sd JobId 71: Labeled new Volume "Vol0071" on device "FileStorage_SATA-RAID1-MD1" (/var/bacula/File-Storage).
14-Jul 21:43 WEFIS_bacula-sd JobId 71: Wrote label to prelabeled Volume "Vol0071" on device "FileStorage_SATA-RAID1-MD1" (/var/bacula/File-Storage)
14-Jul 21:43 WEFIS_bacula-dir JobId 71: Max Volume jobs exceeded. Marking Volume "Vol0071" as Used.
14-Jul 21:41 wefis-server1-fd JobId 71: Generate VSS snapshots. Driver="VSS Win 2003", Drive(s)="D"
14-Jul 21:41 wefis-server1-fd JobId 71: Could not stat D:/Backup/Exchange Backup/: ERR=Zugriff verweigert
14-Jul 21:43 WEFIS_bacula-sd JobId 71: Job write elapsed time = 00:00:18, Transfer rate = 0 bytes/second
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "System Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "MSDEWriter", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "FRS Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "Registry Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "Dhcp Jet Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "TermServLicensing", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "Event Log Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "COM+ REGDB Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "NTDS", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "WINS Jet Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "IIS Metabase Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:41 wefis-server1-fd JobId 71: VSS Writer (BackupComplete): "WMI Writer", State: 0x1 (VSS_WS_STABLE)
14-Jul 21:43 WEFIS_bacula-dir JobId 71: Bacula WEFIS_bacula-dir 2.4.1 (07Jul08): 14-Jul-2008 21:43:32
Build OS: i686-pc-linux-gnu redhat
JobId: 71
Job: Daily_Exchange_Backup.2008-07-14_21.00.20
Backup Level: Full
Client: "wefis-server1-fd" 2.4.1 (07Jul08) Linux,Cross-compile,Win32
FileSet: "Exchange-Backup" 2008-07-08 22:16:43
Pool: "Default-Harddisk" (From Run pool override)
Storage: "File" (From Job resource)
Scheduled time: 14-Jul-2008 21:00:00
Start time: 14-Jul-2008 21:43:14
End time: 14-Jul-2008 21:43:32
Elapsed time: 18 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: yes
Storage Encryption: no
Volume name(s): Vol0071
Volume Session Id: 40
Volume Session Time: 1215691744
Last Volume Bytes: 695 (695 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK -- with warnings
14-Jul 21:43 WEFIS_bacula-dir JobId 71: Begin pruning Jobs.
14-Jul 21:43 WEFIS_bacula-dir JobId 71: No Jobs found to prune.
14-Jul 21:43 WEFIS_bacula-dir JobId 71: Begin pruning Files.
14-Jul 21:43 WEFIS_bacula-dir JobId 71: No Files found to prune.
14-Jul 21:43 WEFIS_bacula-dir JobId 71: End auto prune.
All the files have read/write premissions for everyone. Let alone the
fact that they were just created and copied (!!) by the same user, that
a second later can not access the files? I don't get it.
If anyone has solved a similar problem or if I made a stupid mistake,
please let me know.
I am at my wits end.
All the best,
Nils
|
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Bacula-users] Could not stat - Windows permission problems,
Nils Blanck-Wehde <=
|
|
|