[SOLVED] Scheduled AD Sync job

supertramp4

New Member
Jul 27, 2023
2
1
3
Hi, I am running Proxmox 7.4-16 , and I have successfully linked this to Active Directory.

I wanted to know if it is possible to use a scheduler so that for example every 1 hour, the command "pveum realm sync <realm>" is run.

This would allow any changes in AD to automatically be picked up in Proxmox.

If possible, which file will I need to edit to include this command ?
Thanks in advance.
 
Hi,

this is easily possible using cron.
Run crontab -e as root, which should open an editor (probably nano or vim) with the crontab.

At the end, add the following line (replacing <realm> with the actual name of course):
Code:
0 * * * * /usr/sbin/pveum realm sync <realm>
After that, just save and exit.

That will run the command each hour.
crontab.guru is a good website for getting the cron syntax right.
 
  • Like
Reactions: Burny