# BackupMethod enum

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum BackupMethod
```

Enumerates the ways in which documents can be written to the disk during a save operation.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Default | -1 | Gets the default save method. When in doubt use this. |
| None | 0 | Old files are overwritten by new files. |
| ChildFolder | 1 | Old files are time-stamped and copied to a sub-folder prior to being overwritten by new files. |
| SameFolder | 2 | Old files are time-stamped and kept in the same folder prior to being overwritten by new files. |
| UserFolder | 3 | Old files are time-stamped and copied into the [FileUtility.BackupUserFolder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.fileutility/backupuserfolder.md) prior to being overwritten by new files. |
