Maintenance Cleanup Task not cleaning up

  • I am running a maintenance cleanup task as shown below but despite the log saying "success" it is not succesful as nothing is cleaned up.

    Maintenance Cleanup Task (VPS20604)

    Maintenance Cleanup on Local server connection

    Cleanup Database Backup files

    Age: Older than 4 Weeks

    Task start: 2015-07-08T16:14:24.

    Task end: 2015-07-08T16:14:24.

    Success

    Command:EXECUTE master.dbo.xp_delete_file 0,N''C:\SQLBkp'',N'''',N''2015-06-10T16:14:24''

    GO


    Jean-Luc
    www.corobori.com

  • Is that just a public note or is there a specific question you're trying to ask?

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • Brandie Tarvin (7/9/2015)


    Is that just a public note or is there a specific question you're trying to ask?

    I guess I was no thinking clearly when writing. It is a question, thanks for asking, I actually I am wondering why this folder is not being cleaned up ? It appears to be running properly but nothing is being deleted


    Jean-Luc
    www.corobori.com

  • Does the SQL service account have permissions on the drive / folder in question?

    Are the files younger or older than 4 weeks old?

    Is it pointing to the correct folder?

    Is the folder protected from deletion? (We have certain folders that lock down a file after X minutes and will not allow it to be deleted by anything but the software that locked down the folder.)

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • What are the extensions of your backup files?

    The parameter for file extension is blank, so it would only delete any backup files that don't have an extension. If your files have bak or trn extensions, you'd need to pass 'bak' or 'trn' as that parameter.

    Cheers!

  • Jacob Wilkins (7/9/2015)


    What are the extensions of your backup files?

    The parameter for file extension is blank, so it would only delete any backup files that don't have an extension. If your files have bak or trn extensions, you'd need to pass 'bak' or 'trn' as that parameter.

    Cheers!

    And here I just assumed the OP scrubbed the backup name. But that's a good point to check.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • Are you really storing your database backups on the C: drive?

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply