summaryrefslogtreecommitdiff
path: root/FreeFileSync/Build/Help/html/Run as Service.html
blob: 782d4130332e683ecfa2f1af624bfe815d62ddbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="base.css" >
	<title>Run as Service</title>
</head>

<body>
	<H2>Run as Service <SPAN STYLE="font-weight: normal">(Windows)</SPAN></H2>

	<P>
		RealtimeSync is designed to run as a background process which does not need further
		attention. Depending on your requirements there are a number of ways to start it automatically.
		Generally the goal is to execute a command line of the form:
	</P>

	<div class="greybox">
		<div class="greybox_inner">
				<span class="command_line">&lt;FreeFileSync installation folder&gt;\RealtimeSync.exe &lt;path to *.ffs_real or *.ffs_batch file&gt;</span>
		</div>
	</div>
	<BR CLEAR=LEFT>

	<BR>
	<BR>

	<h3>Example:</h3>

	<div class="greybox">
		<div class="greybox_inner">
				<span class="command_line">&quot;C:\Program Files\FreeFileSync\RealtimeSync.exe&quot; &quot;D:\Backup Projects.ffs_real&quot;</span>
		</div>
	</div>
	<BR CLEAR=LEFT>

	<BR>

	<OL>
		<LI><p>RealtimeSync should be monitoring while a user is logged in:<br>
		Create a new shortcut, enter the command line from above as target and place it into the user's autostart folder.
		</p>
		<IMG SRC="../images/create_shortcut.png"><br><br>
		<IMG SRC="../images/shortcut_properties.png">
		<br>&nbsp;
		
		<LI><p>RealtimeSync should be monitoring while Windows is running irrespective of currently logged in users:<br>
		Create a new task in your operating systems's task scheduler and have it execute the command line above
		when the system starts. See <A HREF="Schedule%20a%20batch%20job.html">Schedule a Batch Job</A> for an example how to add a task. Then change
		the user which runs the task to <B>SYSTEM</B> - a special user account always running in the background.
		</p>
		<IMG SRC="../images/schedule_realtimesync.png">
	</OL>
</body>
</html>
bgstack15