A
A
axeax2015-05-05 12:31:22
Active Directory
axeax, 2015-05-05 12:31:22

What is the reason for the lack of backups?

Dear experts! Help solve the problem with backups. Essence in the following:
There is a domain network, at users . domain accounts. Through the GPO (in the task scheduler, the script that launches winrar), each account is configured to back up the "Desktop" and "My Documents" folders.
What we have as a result:
1) After the user receives the policy, the scheduler successfully executes the script, the backup is normally placed in the network folder.
2) If you do not restart the computer, the backup will also be updated every day in a network folder.
3) Those who do not turn off the computer, but only enter it into sleep mode, also back up normally
4) After rebooting, the backup in the network ball stops updating
5) At the same time, the scheduler log says that the task was successfully completed
6) If you delete the old user backup, a new one will appear and will be updated until the computer is restarted again.
Initial data:
The startup script is located in the network share and looks like this:

if exist "C:\Program Files (x86)\WinRAR\WinRAR.exe" ("C:\Program Files (x86)\WinRAR\WinRAR.exe" a -r -u -f -dh -rr8 -y -ibck "\\superhost\backups$\work\%username%.rar" @\\it\packages\scripts\backup.lst) else ( if exist "C:\Program Files\WinRAR\WinRAR.exe" ( "C:\Program Files\WinRAR\WinRAR.exe" a -r -u -f -dh -rr8 -y -ibck "\\superhost\backups$\work\%username%.rar" @\\it\packages\scripts\backup.lst ) )
exit

Google for winrar keys: www.cyberforum.ru/cmd-bat/thread702837.html
Immediately answers to questions that arise:
1) Read and execute permissions for all backup users (ntfs and network ones) are set.
2) The network folder where the backups are placed also has the corresponding rights
3) The client's policies do not go anywhere, the scheduler log shows that the script is executed without errors.
4) There are 100% changes in the backed up folders (I mean that not a complete archive is created, but only the existing one is supplemented with changes)
5) Everywhere Win7, variations only by gradation
6) In the scheduler, the parameter "Execute immediately if a scheduled launch is skipped" is set true
What I did and didn't help:
1) I tried to set full rights for all users both to the script and to the location of backups
2) I tried to add a key to the winrara keys that writes an error code to the file - the file is not created
3) I tried to start the task from the scheduler manually - winrar starts and type creates an archive , the copy is not updated, and still does not work according to the schedule
4) I checked that access to network folders does not disappear after a reboot

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
athacker, 2015-05-05
@athacker

Did you check the process in memory? Maybe it hangs for some reason. Those. after restarting the machine, the script executes, starts winrar, and this winrar process remains hanging in memory.

P
Power, 2015-05-05
@Power

Maybe I'm pointing my finger at the sky, but what a reboot does is flush all sorts of caches. Maybe you have some kind of clock desync issue (if winrar uses file modification times). Or some problem of reading a file from a network share, which does not appear until a reboot, because. the file (or even just its metadata) remains in the local cache.

D
Denis Verbin, 2015-05-06
@rez0n

Try redirecting the output of this script to a file, and then see what prevents it from being executed after reboot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question