![]() |
idFTP: "Could not create file."
Hallo Zusammen,
Ich habe ein Programm welches Backups von einem Windows 2003 Server auf einen FTP-space schiebt. Mein Problem ist: Das Programm läuft auf meinem PC (Win XP Home Sp2) wie es soll, aber auf dem Server kommt immer der Fehler: Zitat:
Delphi-Quellcode:
Danke für alle konstruktiven Beiträge im voraus :thumb:
procedure TBackUpDeamon.Dobackup;
begin try if fDataBasePath = '' then raise EBackUpDeamonError.Create('Kein Datenbankpfad angegeben'); Self.WirteHistory(DateTimeToStr(now)+' Beginn des FTP Uploads...'); CopyFile(PChar(fDataBasePath),PChar(ChangeFileExt(fDataBasePath,'.bck')),False); //Kopie erstellen, damit es keine Probleme bei gleichzeitigem Zugriff gibt... fIdFTP.Connect; fIdFTP.Put(ChangeFileExt(fDataBasePath,'.bck'),ChangeFileExt(ExtractFileName(fDataBasePath),'-'+DateToStr(now)+'.SQLite')); fIdFTP.Quit; Self.WirteHistory(DateTimeToStr(now)+' FTP Upload erfolgreich beendet...'); except On E: Exception do Self.WirteHistory(DateTimeToStr(now)+' Error @ TbackUpDeamon.doBackup Msg: '+E.Message+' Class: '+E.ClassName); end; end; Grüße phreax |
Re: idFTP: "Could not create file."
Der Fehler war eigentlich recht simpel, da es sich um ein englisches Betriebssystem handelt, wird das Datum als
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz