You need to create a scheduled task on the server that will launch archiving by calling cmd4 either directly, with all required parameters, or in a batch file.
For cmd4 syntax, related to archiving, see Archiving editions (pages with specific workstate).
See also