You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macOS has a very tight protection system when running scheduled tasks (also called agents).
322
+
Here's an example of scheduling a backup profile named `azure-dev`:
323
323
324
-
Under macOS, resticprofile is asking if you want to start a profile right now so you can give the access needed to the task, which consists on a few popup windows (you can disable this behavior by adding the flag `--no-start` after the schedule command).
324
+
```shell
325
+
% resticprofile -n azure-dev schedule
326
+
2025/03/30 18:40:13 using configuration file: profiles.yaml
325
327
326
-
Here's an example of scheduling a backup to Azure (which needs network access):
2025/03/30 18:40:13 scheduled job azure-dev/backup created
330
337
331
-
Analyzing backup schedule 1/1
332
-
=================================
333
-
Original form: *:0,15,30,45:00
334
-
Normalized form: *-*-* *:00,15,30,45:00
335
-
Next elapse: Tue Jul 28 23:00:00 BST 2020
336
-
(in UTC): Tue Jul 28 22:00:00 UTC 2020
337
-
From now: 2m34s left
338
+
```
338
339
340
+
In some cases, macOS may request permission to access the network, an external volume (like a USB drive), or a protected directory. A message will appear while the backup runs in the background.
339
341
340
-
By default, a macOS agent access is restricted. If you leave it to start in the background it's likely to fail.
341
-
You have to start it manually the first time to accept the requests for access:
342
+
To respond immediately, start the task now:
342
343
343
-
% launchctl start local.resticprofile.self.backup
344
+
1. Retrieve the task name using the status command:
344
345
345
-
Do you want to start it now? (Y/n):
346
-
2020/07/28 22:57:26 scheduled job self/backup created
346
+
```shell
347
+
% resticprofile -n azure-dev status
348
+
2025/03/30 18:40:21 using configuration file: profiles.yaml
0 commit comments