Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Backup with scheduled job

Forum

Search UsersRules
Backup with scheduled job
#1
Interested
Points:: 0
Joined:: Nov 10, 2011

Hello!

My Customer needs a daily backup but he does not like the way with dumping infobase using designer mode. How can I configure Scheduled Jobs? Maybe it is something with creating an image?

Thank you for any advice!

Profile
#2
Just came
Points:: 0
Joined:: Jan 22, 2015

You can make .bat or .cmd for this. For example:

"C:\Program Files (x86)\1cv8\common\1cestart.exe" DESIGNER /F "C:\Work\Bases\ForUS_8_3" /DumpIB "C:\Work\test.dt"

You can look through "General Startup Options" and "Designer Startup Parameters" in Help for more options.

Profile
#3
Interested
Points:: 0
Joined:: Nov 10, 2011

Thanks a lot, Valerii! One more question - if I make a .bat file, in which folder should I put this file? I got and answer from Extended Technical Support, they suggested to configure a Task Scheduler in the Designer Mode as well. Thank you!

Profile
#4
Interested
Points:: 15
Joined:: Oct 27, 2011

I have seen user notifications for backup in some Russian configurations. Will be great if someone share this code to make backup process click of a button.

Profile
#5
Active user
Points:: 0
Joined:: Apr 18, 2012

Russian configurations inherit backup feature from 1C:Subsystems Library.
English version of Subsystems library develops slowly than russian and unfortunately doesn't have backup feature.

Profile
#6
Interested
Points:: 0
Joined:: Nov 10, 2011

I created scheduled job and in Common Module ScheduledProcedure. I just do not know what should I write in this Procedure in order this .bat-file to be executed. I will share this code as soon I have got it. Maybe somebody is faster :)

Thanks!

At the moment it works with 1cstar icon

Profile
#7
Just came
Points:: 0
Joined:: Jan 22, 2015

Actually, I thought about Windows scheduler. You can make task in it. In addition, in case users work with base in time when you start backup, you need run 1c 3 times: first, you log off all users and disallow log in, than make backup, than allow login.

Profile
#8
Interested
Points:: 0
Joined:: Nov 10, 2011

Thank you, Valerii! I am wondering how this can work:
<deleted as rules violation>
Unfortunately, in Russian.

Profile
#9
Interested
Points:: 0
Joined:: Nov 10, 2011

Thank you all for answers!

By now the task has been changed. This customer wants a non-trivial solution. It should work so that when he closes the application, the program asks him "Would you like to make a backup?" He presses "Yes" button and a back up file will be created. I guess it is also possible and would be grateful for every advice.

Thanks a lot!

Profile
#10
Guest
Points::
Joined::

Hello, Lioudmila.

You can do all the same as previously, but store in a constant the date of the last backup.
In the managed application module you can run a procedure from some common module that checks whether the backup should be executed. And if yes and user confirms that, execute the backup script.
You also can check that the user have appropriate rights and save the loading time for non-administrative users, for example.

But the best solution is to use SQL backup scripts in client/server mode, or copy the folder with file infobase by a schedule.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.