Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Thank you and appreciate your help. The script works like a charm. $BackupDirectories{db1} = "E:\\Scripts\\Backup\\DBTest1.0\\DBTest1\\NODE0000\\CATN0000\\" ; $ArchiveDirectories{db1} = "E:\\Scripts\\ArchivedLogs\\DBTest1\\DBTest1\\NODE0000\\C0000009\\" ; $BackupDirectories{db2} =...
  2. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Thanks, The archived files are located in a different folder structure other then the backup folder location. I have modified the script but the issue will be for the second DBTest2 Archived database folder structure "E:\\Scripts\\ArchivedLogs\\DBTest2\\DBTest2\\NODE0000\\C0000009". DATABASE...
  3. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Hi Annihilannic I was trying to make a few modifications to the script. We had it to delete backups older then X number of days under $Directory = "E:\\Scripts\\Backup\\$database"; There were archived logs generated by the database and I wanted to perform the similar delete operation as we...
  4. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    To check wheather the file contains today's date under the folder. The same check we have it for the folder.
  5. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Thanks, The script works like charm. While testing the script, I was wondering if there is a way to perform file check for today date as well within the if statement. Because all the dated folders contains the backup image file for the same date. If not then we can keep as is because it is...
  6. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Yes, you are correct. If the backup folder did not exist for the date when then script will run, it should not remove the old backups.
  7. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Thanks, I have modified the script as per your loop recomendation. The requirement is that when a full backup is on Saturday then the database will generate a folder date "20090919" and under this folder that's where database will backupthe backup image file "220004.001". The perl script...
  8. TheGuru10

    Deleting 10 day old backup folders if a current full backup exists

    Hello, I have a perl script which deletes the folders by date but my goal is to check if a folder and file was created by capturing dates from folders and files and then execute the delete. If the folder and files do not exist then do nothing. The below script only delete folders by date: ##...

Part and Inventory Search

Back
Top