It looks like in 10.8 a range of commands were not permitted:
These commands must not be used in a job: copy, repeat, show boot-history, show core-dump, show
events, show job, show tech, sleep, terminal-monitor.
But in a later manual that restriction isn't listed. It might just not be in the manual but a scan of release notes from 10.9 or 10.10 might provide an enhancement.
On the latest release I could do this
switch1(config-job-test_ian502)# show run cur
job test_ian502
10 cli copy running-config tftp://10.10.50.75/test cli vrf default
Original Message:
Sent: Feb 13, 2023 09:32 AM
From: danish.saleem@zhtek.com.pk
Subject: Job Scheduler copy command could not execute
hi team.
i am using 6100 cx switch and try execute copy command in job scheduler for auto switch config backup to our tftp server. please see the below bold error. pleas
SW# copy running-config tftp://------------------/test cli vrf default
Copying configuration: [\] % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1920 0 0 100 1920 0 1735 0:00:01 0:00:01 --:--:-- 18285
100 1920 0 0 100 1920 0 1734 0:00:01 0:00:01 --:--:-- 1734
Copying configuration: [Success]
SW(config-job-autobackup)# cli copy running-config tftp://10.10.50.75/test cli vrf default
This command cannot be part of a job
please recommend the useful method for auto backup config file.