DEV Community

uni928
uni928

Posted on

Publish a Windows application that automatically saves a backup of the desktop folder.

I developed an application that saves a backup every time a file on the desktop folder is saved, so I would like to release it to you in the hope that it will be useful to you.

https://drive.google.com/file/d/1Z_G7TtBs1T5cRITIteauW7UcLeB5NDUL/view?usp=sharing


This is a Windows application that automatically saves file backups.

It saves backups of all files on the desktop completely automatically, without any operation.

No operation is required other than having it running.

It must be running.

It can be fully automated by registering it as a startup application when the PC starts up.

A "Desktop_BackUP" folder is created at the same level as the desktop folder, and backups are accumulated in it.
It is probably the "C:\Users\User\Desktop_BackUP" folder.

The save interval and the maximum number of files that can be saved vary depending on the file size.

The conditions are as follows.
0B to 1MB files: Up to 300 files are saved once every 5 seconds.
1MB to 5MB files: Up to 200 files are saved once every 10 seconds.
5MB to 10MB files: Save up to 100 files once every 60 seconds.
10MB to 30MB files: Save up to 30 files once every 300 seconds.
30MB to 50MB files: Save up to 20 files once every 900 seconds.
Files larger than this: Save up to 10 files once every 1800 seconds.

If the file has not been updated, no backup will be taken even after the specified number of seconds has passed.

If the specified number is exceeded, the oldest data will be deleted when a new backup is saved.

For example, if there are 30 backup files of a 20MB file and you take a new backup, the oldest backup file will be deleted.

This function does not save files, as it only periodically performs backups when files are saved.
You must manually save files using Ctrl + S, etc.

If the "Desktop_BackUP" folder is getting full, consider deleting the "Desktop_BackUP" folder.
If you delete it, the "Desktop_BackUP" folder will be created again.


The development environment can be downloaded from the URL below.

https://drive.google.com/file/d/1_CFIKWWVoAMOW4w7Lp_-k1O55Zr-P5q3/view?usp=sharing


I have now released a Windows application for automatic file backup.

This application may allow you to retrieve data from the morning, but only if you work on the desktop.

I hope this application is useful to you.
Thank you for reading.

Top comments (0)