Skip to content

Commit

Permalink
added content
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelweinold committed May 20, 2024
1 parent c225dbb commit 677e762
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions source/content/gettingstarted/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,39 @@ bd.projects.delete_project(name=<old_project_name>, delete_dir=True)
{py:obj}`bw2data.project.ProjectManager.delete_project`
```

## Backup Project

> How do I backup an existing project? \
> How do I save a project to disk?
```python
bd.backup.backup_project_directory(
project='<project_name>',
dir_backup='<target_location_for_backup>'
)
```

```{admonition} API Documentation
:class: seealso
{py:obj}`bw2io.backup.backup_project_directory`
```

## Restore Project

> How do I restore a project from a backup?
```python
bi.backup.restore_project_directory(
fp='<path_to_backup>',
project_name='<project_name>'
)
```

```{admonition} API Documentation
:class: seealso
{py:obj}`bw2io.backup.restore_project_directory`
```

## Delete Project

> How do I delete an existing project?
Expand Down

0 comments on commit 677e762

Please sign in to comment.