Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got a domain of 10-15 Windows 7 computers that I don't have physical access to. They are using Windows Backup to only backup certain files (Desktop, Fav's, PST, things like that). The problem I'm having is that my server is running out of room. How can I set the backup to use, say, only 20gb, or to delete backups older than one month?

share|improve this question
add comment

1 Answer

Create a batch file with the following command line:

forfiles -p "C:\path\path" -s -m . -d -c "cmd /c del @path"

Schedule that file to be ran on a daily basis.

share|improve this answer
    
You'll also need to download Windows Server 2003 Resource Kit Tools (microsoft.com/en-us/download/details.aspx?id=17657) –  George Jun 1 '12 at 16:57
    
You can also get forfiles by going to (ftp.microsoft.com/ResKit/y2kfix/x86) –  George Jun 1 '12 at 19:02
    
And make sure you place it in System32 folder under Windows –  George Jun 1 '12 at 19:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.