Eclipse has Replace With > Local History
for individual files (and Restore from Local History
for deleted files).
By default the local history is only kept for a few days, you can configure this in Preferences > Workspace > Local History
.
For anything more complex you can use one of the many source control systems supported by Eclipse such as SVN or Git. This is worth doing just for the extra backup and does not require a separate server.