Tuesday, September 22, 2009

Windows XP Remote Command Line Backup

I had the need today to connect out to a PC and run a backup on it.  Turns out this is trivial to do even with the standard windows NTBackup program.  From another machine logged in with admin rights to the target machine run the following command:

c:>ntbackup backup \\remotePCnamehere\c$ /j “PC backup name here” /f “c:\backup.bkf”

This will backup the C: drive on the pc named remotePCnamehere locally to your C: in a file called backup.bkf on the box running the command.  I can’t believe I haven’t had need for this more often. 


No comments: