Copying crontab for a user from one server to other server.

Could you please let me know, if the crontab for a user (eg test)in /var/spool/cron/crontabs directory can be copied from one server to other server. Both the servers are on AIX 5.3 and the target servers has the test user and all the executable files listed in the crontab for the test user on the source server.

Thanks in Advance.

yes but make sure you restart cron on the target server. the best way to do it is to have the user copy it and install it.

eg.
crontab -l > crontab.backup
scp crontab.backup user@target:.
ssh -l user target crontab crontab.backup

1 Like