Skip to content

Commit

Permalink
added a description of the new argument
Browse files Browse the repository at this point in the history
  • Loading branch information
apprell authored Mar 21, 2023
1 parent f645fcc commit 2aeb995
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ chmod +x /root/proxmox-autosnap/proxmox-autosnap.py

## Help

| Arguments | Required | Type | Default | Description |
|----------------|----------|------|---------|------------------------------------------------------------------|
| vmid | yes | list | empty | Space separated list of CT/VM ID or `all` for all CT/VM in node. |
| snap | yes | bool | false | Create a snapshot but do not delete anything. |
| autosnap | no | bool | false | Create a snapshot and delete the old one. |
| keep | no | int | 30 | The number of snapshots which should will keep. |
| label | no | str | daily | One of `hourly`, `daily`, `weekly`, `monthly`. |
| clean | no | bool | false | Delete all or selected autosnapshots. |
| exclude | no | list | empty | Space separated list of CT/VM ID to exclude from processing. |
| mute | no | bool | false | Output only errors. |
| running | no | bool | false | Run only on running vm, skip on stopped. |
| includevmstate | no | bool | false | Include the VM state in snapshots. |
| dryrun | no | bool | false | Do not create or delete snapshots, just print the commands. |
| Arguments | Required | Type | Default | Description |
|-----------------|----------|------|---------|------------------------------------------------------------------|
| vmid | yes | list | empty | Space separated list of CT/VM ID or `all` for all CT/VM in node. |
| snap | yes | bool | false | Create a snapshot but do not delete anything. |
| autosnap | no | bool | false | Create a snapshot and delete the old one. |
| keep | no | int | 30 | The number of snapshots which should will keep. |
| label | no | str | daily | One of `hourly`, `daily`, `weekly`, `monthly`. |
| clean | no | bool | false | Delete all or selected autosnapshots. |
| exclude | no | list | empty | Space separated list of CT/VM ID to exclude from processing. |
| mute | no | bool | false | Output only errors. |
| running | no | bool | false | Run only on running vm, skip on stopped. |
| includevmstate | no | bool | false | Include the VM state in snapshots. |
| dryrun | no | bool | false | Do not create or delete snapshots, just print the commands. |
| date-iso-format | no | bool | false | Store snapshots in ISO 8601 format. |

> proxmox-autosnap.py --help
Expand All @@ -52,6 +53,11 @@ proxmox-autosnap.py --snap --vmid all --label hourly

# Delete all hourly autosnapshots for all VM
proxmox-autosnap.py --clean --vmid all --label hourly --keep 0

# Create snapshots in ISO 8601 format
# Example autodaily_2023_03_22T01_26_23
# It is not necessary to specify the --date-iso-format argument to delete snapshots
proxmox-autosnap.py --snap --vmid 100 --date-iso-format
```

## Cron
Expand Down

0 comments on commit 2aeb995

Please sign in to comment.