Cron export/import

Hello,
is there any change to export/import the Hestia´s cronjobs? I installed the panel on new server, but on old server have few hundreds of cronjobs…

User cronjob are inside the user backup

Including the admin user…

1 Like

So can import only the CronJobs on new server?

v-restore-user 
Usage: v-restore-user USER BACKUP [WEB] [DNS] [MAIL] [DB] [CRON] [UDIR] [NOTIFY]

You can just extract the CRON entries from a backup using this command. I’ve forgotten the exact syntax now, but I THINK ( i.e. do some checks first … ) its like this:
v-restore-user username backup-file.2022.tar.gz "no" "no" "no" "no" "yes" "no" "no"

Alternatively, you may be able to copy
/usr/local/hestia/data/users/username/cron.conf
from old server to new server, and then rebuild the user.

Maybe one of the admins can confirm these approaches.

3 Likes

After rebuild it should be working