Skip to content

tonymmm1/py-backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages