Giter Site home page Giter Site logo

hetzner-storage-backup's Introduction

Hetzner Storage Backup

This is a simple program to backup, zip, and upload files via sFTP to a Hetzner Storage Box ($4/Mo for 1 TB of space). It requires just some configuration, the storage box account information, and a Linux machine (bare metal or VPS from any provider).

Installation

git clone https://github.com/Reecepbcups/hetzner-storage-backup.git
# git clone [email protected]:Reecepbcups/hetzner-storage-backup.git
cd hetzner-storage-backup

# install required dependencies
# sudo apt-get -y install python3-pip
python3 -m pip install -r requirements.txt

# Change your hostname if you want different notification names
hostnamectl set-hostname new-hostname

# copy the default file to the new config file you edit
cp secret.json.example secret.json

# Edit this file with the proper regex files you want to ignore, and folders you want to include.
# NOTE: if you want to match all, ensure you do '.*' as '*' does not work for standard python regex.
# Ex: '.*test/' will ignore 'hello_test/', even though there is no actual period (.) in it.


# BE SURE TO RUN THIS FROM THE ROOT OF WHAT YOU SET 'save-location' IN THE CONFIG
# EDITOR=nano crontab -e
0 2 * * * /usr/bin/python3 /root/hetzner-storage-backup/src/main.py

# Times are in UTC (6am UTC = 12am CST)
# Run every night at 2am:            0 2 * * *
# Sunday at 1AM:                     0 1 * * 0
# First day of the month at 3:20PM: 20 15 1 * *

Discord notifications

image

hetzner-storage-backup's People

Contributors

reecepbcups avatar malafk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.