if ($OS =~ /Windows*/ )
{
$BACKUP_DIR = "\\\\server\\backups[/url]";
$LOG_FILE = "$BACKUP_DIR"."
\\"."backuplog.log";
$LOG_FILE2 = "$BACKUP_DIR"."
\\"."backuplog2.log";
$BACKUP_COMMAND = "c:\\winnt\\system32\\robocopy.exe /SECFIX /V /MIR /IS /LOG+:$LOG_FILE";
$WAIT_SECONDS = 10;
}
printf ("INFO: Starting Backup command...\n");
foreach $FILES (@FOLDERS)
{
chomp ($FILES) ;
@PARTS = split (/[\\\/]/, $PATHS{$FILES});
$FILE_BACKUP_PATH = "$datepath"."$PARTS[$#PARTS]";
system ("$BACKUP_COMMAND $FOLDER_STORAGE_PATHS{$FILES} $BACKUP_DIR");
}
The error I receive from Robocopy is that it can't find a specified file even though robocopy displays the path of that file, and robocopy times out. The files are nested under folders and the path is > 256 characters under windows 2000 NTFS.
Hope this helps.