File Backup Utility

Command line utility to create backup copies of file, and restore from these backups.


  • Create .bak copy of the file. Automatically replace .bak to .bak1 and so on up to defined limit. Limit can be specified as command line parameter, and default is 3.
  • Restore file from .bak copy. This will rename older backups too, so .bak3 will become .bak2.
  • Delete all backups of file.
  • Store backups in specific directory. E.g. when you are backing up file in public directory, you may want to keep the backup in private directory.


.NET Framework 4.6.1 – if you don’t have it, application will ask to download and install it, so no installation package is needed. This is default feature of .NET framework.


backup.exe myfile.txt

- Will create file myfile.txt.bak. If there was myfile.txt.bak, it will copy the old backup to myfile.txt.bak1, and do the same with older backups. If older backup would end with .bak4 or larger number, it is deleted.

backup.exe myfile.txt /limit:20

- Same as above, but oldest backup would have extension .bak20, hence you would have 21 backup files maximum.

backup.exe myfile.txt /restore

- Will delete the myfile.txt, rename myfile.txt.bak to myfile.txt, and rename all older backups – e.g. .bak5 will become .bak4 etc.

backup.exe myfile.txt /cleanup

- Will delete all backups of myfile.txt

Utility is ready for server batch processing – it may write error messages to Event Log. In order to enable this feature, you have to execute backup.exe once as administrator.


Click here to download binary (14 Kb)


This application is freeware. Enjoy!

blog comments powered by Disqus