Skip to content

laspavel/HetznerSnapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create Hetzner snapshot

Create Hetzner snapshot

Requirements:

  • python3

Configuration:

Update script parameters:

  • alarm_telegram_id - telegram id for send creating snapshot status.
  • telegram_token - telegrambot token
  • api_timeout - API Hetzner timeout (sec)
  • api_token - Hetzner API token (See documentation)
  • server_name - ServerName for backup
  • backup_timeout - Time after which the status will be checked.
  • snapshot_templ_name - Snapshot template name (Example, final name for snapshot_templ_name='server1_autobackup_' - server1_autobackup_2024-01-02 09:20:41.634323)

Usage in terminal:

python3 HetznerSnapshot1.py

Usage in cron:

45 4 * * 1 opc cd /home/opc/scripts && python3 HetznerSnapshot1.py

License

MIT / BSD

Author Information

This script was created in 2024 by Pavel Lashkevych.

Releases

No releases published

Packages

No packages published

Languages