Nothing complicated. Who works with scripts will understand. For the rest Comment created the most important units of the program.
Basic principles:
* Each base 1C is archived in a separate folder;
* In this "private folder" accumulate all the files 1C bases;
* Upon the occurrence of the end of the file retention period (s) - is automatically removed from the respective folder;
* Before unloading the database closes any locally running instances of 1C versions 7.7, 8.1 and 8.2;
* Conducted the most detailed log;
* In the case of an abnormal termination of the script on behalf of a given user (eg. Administrator) warning message is sent to the specified address. There is an opportunity to invest in a message file (eg a detailed log to be recorded during the backup.);
* Work with file databases 1C v 8.1, 8.2, and any bases 1C v 7.7.
The entire backup process is performed only by means of Windows itself and 1C (without additional software).
It published an updated version v2 on 06.07.2010 !!!
Changes in the new version:
* Now all the variables and constants are passed in the beginning of the script;
* The code itself has become more informative (comments have been added);
* The log file also has become more informative, each operation is recorded in detail;
* Added the function of additional monthly backup (redundancy) archive files to a separate directory (once a month is duplicated last file). If the file has been previously copied, then re-copy does not take place (to avoid bezsmyslenno operations), what message appears in the log;
* After the operation, the monthly output to log duplication result of the operation (eg the name of the copied file.);
* After removing the obsolete files in the log information is recorded: Number of remote objects;
* Now you can delete files, manage processes states, additional backup and sending e-mail. Now, with the help of the constants can be ON. or OFF. these processes;
* Checks for available disk space for backup copies and logs in the log;
* Fixed a bug with the bases 1C v 7.7, which was not carried out at deleting obsolete files.
Withupdatesfrom 14.07.2010 1C 8.2 support !!!
Withupdatesfrom 24.07.2010 Addedabilitytosend messages to each end of the script to the e-mail. With EmailEndScript constant: if True is sent izveshenie the end of the script, if False - do not be!
Another new option. To determinethe presence of the registered user in the system1C constant User = True -. The user has (login + password), User = False - the system has no specific users (with user name and password will not ask).
Edit script in Notepad, ukazavaya their data. What and where to enter, see. In the screenshots!
The latest version Fixed incorrect work with network paths when creating a directory on the remote computer.
Download! I would be glad if someone helped!
PS
I plan to continue the development of the theme.
What will happen in the new version?
Informing the domain users to start maintenance work.
Enforceability processes 1C complete on all domain computers.
Sending e-mail from a computer that does not have a local SMTP-service / server.
and of course to work with SQL-versions.
There are many ideas ... ... Things are easy to find the time!
Как самостоятельно обновить конфигурацию 1С Предприятие 7.7
