DEV Community

uni928
uni928

Posted on β€’ Edited on

Publish a Windows application that automatically backs up files

I created a Windows application that monitors a folder and automatically saves a backup if any files within it are updated.
I hope it will be useful to others, so I would like to release the source and the main body of the application.

Please download ver3.0.2 (latest version) from the following site.
https://drive.google.com/file/d/1d1Iw8Lot4EwY8tvXZioqea8zm5oST6dU/view?usp=sharing


Description of this application

It monitors a folder and automatically saves a backup when a file in it is updated.

For example, if there is index.php in the Folder folder, if you monitor the Folder folder, a backup file will be automatically generated when index.php is updated.

The format of the backup file is update date_file name.zip.
For example, the file name will be 20240401-123021_index.php.zip.

If you are monitoring the Folder folder, a Folder_BackUP folder will be generated in the same location as the Folder folder and a backup will be generated in it.

If there is a folder in the monitored folder, that folder will also be monitored.
In other words, child elements and grandchild elements will be targeted.

Old data that is more than 4 working days old will be automatically deleted the next time monitoring starts.
(Only the last edited content of each file on that day will remain)

Even if an error occurs during execution, the data in the monitored folder will never be rewritten.
Please use it with confidence.

Potential applications:

  • Excel and Word editing
  • Unity Assets folder
  • Small Illustrator files
  • HTML creation
  • Video editing
  • Programming
  • Many other applications.

If you monitor the Unity Assets folder, a backup will be saved, as shown in the image below.(If you want to monitor your Unity Assets folder, I have a better solution for that in my other article.)

The Assets_BackUP folder is automatically generated.
Example of generating a backup.


If you want the ver3.0.2 project file, please download it from the URL below.
You can open it in Visual Studio.
https://drive.google.com/file/d/1TVrTbElnDcBsxQ9DN_rocA9il7acqOUP/view?usp=sharing


We have publish an automatic backup Windows application.

We hope that it will be useful for your development.
Thank you for watching.

πŸ‘‹ While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay