OAProfessor

Deep OA Product Insight

User Tools

Site Tools


backupyourbackups

Sometimes we make some fun subroutines. Here is a control manager script that takes the backup folder that OA makes (if you set it up) and makes a copy every day so you have 365 versions of your project somewhere. It then will reuse the folder name for next year.

I made this because the backup in OA overwrites the files every time the backup runs. This could be an issue if you are developing on a running server and you decide to go back a few days to check something.

backupversions.ctl

If you are having issues with the online backup running successfully, you might need to get rid of a windows system hidden file!

When windows looks at the project/pictures folder, it likes to make a file called Thumbs.db which is a file with thumbnail pictures of all the file in that folder. Well, that is a system+hidden file and when the backup tries to overwrite it on subsequent backups, it will give an error “Error while opening destination file”.

Open a command window AS ADMINISTRATOR: C:/WinCC_OA_Proj/myProject/pictures> attrib -s -h Thumbs.db C:/WinCC_OA_Proj/myProject/pictures> del Thumbs.db

To stop windows from creating this file: Open the gpedit tool from the same command window browse to: User Configuration→Administrative Templates→Windows Components→File Explorer find the setting “Turn off caching of thumbnail pictures” and ENABLE it

backupyourbackups.txt · Last modified: 2022/08/03 13:46 by toddmalone

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki