The number of backups a single course can keep on the server is defined by the System Preferences Course Backups option.
Administrators can create backups for any course, while instructors can only create backups of courses they own.