Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 946 Bytes

File metadata and controls

50 lines (33 loc) · 946 Bytes

py-backup-script

Release 0.1.0

Python script for backing up systems from a TOML configuration file.

Dependencies:

sudo pip3 install toml

Instructions:

Step 1. Make sure Python3 is installed

Step 2. Look at hosts.example.toml and copy it to hosts.toml

cp hosts.example.toml hosts.toml

Step 3. Configure hosts.toml

vim hosts.toml

Step 4. Make sure host that is running script has publickey permissions to remote host with defined user

Step 5. Make sure remote user has sudo permissions for running any specified operation

Usage:

chmod +x py-backup-script.py
./py-backup-script.py -c hosts.toml

py-backup-script cli:

Beginning backup script

usage: py-backup-script.py [-h] [-v] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         increase output verbosity
  -c CONFIG, --config CONFIG