# Archiving files on a remote site when file content changes

## Example configuration

The archive parameter controls the ability to go back and restore various versions of the file. (See eddist.cfg man page (UNIX) or eddist.cfg.html (Windows and all the other operating systems).

<?xml version=”1.0″ encoding=”UTF-8″?>

<sender hostname=”localhost”  alias=”*”
/>
storepath=”/home/backup”   archive=”1″ archivedir=”/home/archives”
/>
</config>

The archive parameter controls the ability to go back and restore various versions of the file.

## Best practice

A good practice is to setup a link (replication set) for your sandbox or for your entire working directory, configure file replication for it and set up the archive parameter, specifically for that directory, and setup a schedule to backup your files. Make sure you setup an include regex to exclude .o files.