Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1475

vbRichClient: Backup solution of development drive

$
0
0
I am trying to establish an efficient backup system.

Until now I create backup copies of my project folders each 6 hours using 7z.
These backup files are synched with Google Drive via the Google Drive app.

At 7zipping, I filter out a few file types that I don't need in order to reduce the zip's file size.
The resulting command is then this:

7z a -ssc z:\\backups\\projectXY_2023-12-14_23.29.21.7z p:\\projects\\projectXY\\Src -xr!*.idb -xr!*.pdb -xr!*.pch -xr!*.log -xr!*.tlog -xr!*.lastbuildstate -xr!*.bin -xr!*.i64 -xr!*.tmp -xr!*.db -xr!*.db-shm -xr!*.db-wal -xr!*.db3 -xr!*.sdf -xr!*.ipch -xr!*.o -xr!*.zip -xr!*.7z -xr!*.so -xr!*.exp -xr!*.suo -xr!*.lock -xr!*.dat -xr!*.cache*.tga -xr!*.jpg -xr!*.png -xr!*.bmp -xr!*.fbx -xr!*.obj -xr!*.OBJ

This way I am just keeping the bas and mod and prj files needed to run the program.

However, my apps also need databases. Because they are so big and it's not convinient to keep many backups of it, I do not back them up regularly, and I need to change that.

The databases are changed much less frequently than the app's source code.

At first I thought that in .NET, I would create file watcher. I googled VB6 Filewatcher and saw a posting that stated vbRichClient does offer a filewatcher.

Has anybody created a backup system with vbRichClient already and would be willing to explain how his solution works?

Also, I tried to find out which files were not even accessed for some years in order to put them into a cold storage folder and get them away from the backups.
However, I was stupid and used fso to find out which files were accessed recently and which were not accessed for like 3 years. This procedure itself however modified the file's access date.
I guess if I had used one of RC's fso methods, this would not have happened.

Thank you!

Viewing all articles
Browse latest Browse all 1475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>