Hi,
i am helpdesk support and recently started working in freefile sync, my issue is how I would take the backup if my server logoff (windows server 2019). if the server is in login position is working fine and I have already tried all the options but no result.
From the task scheduler also I have checked this option but no use "Run whether user is logged on or not"
what I saw is scheduler is working in the background but it's not executing. I did so much testing but without any results.
Thanks in advance
FreeFilesync Task Scheduler issue
- Posts: 1
- Joined: 5 Jul 2022
- Posts: 4056
- Joined: 11 Jun 2019
You followed these instructions?
https://freefilesync.org/manual.php?topic=schedule-batch-jobs
https://freefilesync.org/manual.php?topic=schedule-batch-jobs
- Posts: 2
- Joined: 6 Jul 2022
In your case, I would go about it differently.
Note: this method is not limited to Windows Server, and works fine from Windows XP and up as long as you do not have a home version of windows (pro and enterprise, etc)
Create a .cmd file that, when executing makes the backup succesfully (this way, you can also easily test that it works).
Now, either through gpedit or domain group policy, setup a shutdown script.
Note, there are two type of scripts: log off scripts and shut down scripts. A log off script runs in the user's scope, so network shares etc are available, and shutdown script runs afterwards if the user is logged off, which ensures that any program that was still running is closed, and that helps making a backup of previous open files.
Shutdown script:
Computer configuration -> Windows settings -> Scripts (Startup/Shutdown) -> Shutdown
Logoff script:
User configuration -> Windows settings -> Scripts (Logon/Logoff) -> Logoff
When implemented, and you shut down the computer, it will display a message in the same style as "Installing Windows updates", etc... And once the backup is done, the computer shuts down.
Note: this method is not limited to Windows Server, and works fine from Windows XP and up as long as you do not have a home version of windows (pro and enterprise, etc)
Create a .cmd file that, when executing makes the backup succesfully (this way, you can also easily test that it works).
Now, either through gpedit or domain group policy, setup a shutdown script.
Note, there are two type of scripts: log off scripts and shut down scripts. A log off script runs in the user's scope, so network shares etc are available, and shutdown script runs afterwards if the user is logged off, which ensures that any program that was still running is closed, and that helps making a backup of previous open files.
Shutdown script:
Computer configuration -> Windows settings -> Scripts (Startup/Shutdown) -> Shutdown
Logoff script:
User configuration -> Windows settings -> Scripts (Logon/Logoff) -> Logoff
When implemented, and you shut down the computer, it will display a message in the same style as "Installing Windows updates", etc... And once the backup is done, the computer shuts down.