mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 23:58:33 +02:00
Fixed taging for disabled host
This commit is contained in:
@ -18,7 +18,7 @@ import yaml
|
|||||||
import paramiko
|
import paramiko
|
||||||
file_path = os.path.realpath(__file__)
|
file_path = os.path.realpath(__file__)
|
||||||
dir_path = os.path.dirname(file_path)
|
dir_path = os.path.dirname(file_path)
|
||||||
|
VERSION="1.0.0"
|
||||||
print(file_path)
|
print(file_path)
|
||||||
print(dir_path)
|
print(dir_path)
|
||||||
os.chdir(dir_path)
|
os.chdir(dir_path)
|
||||||
@ -106,7 +106,9 @@ for o, a in opts:
|
|||||||
_EXECUTE = False
|
_EXECUTE = False
|
||||||
elif o in ("-T", "--dry"):
|
elif o in ("-T", "--dry"):
|
||||||
_SSH_TEST = True
|
_SSH_TEST = True
|
||||||
|
elif o in ("-h", "--help"):
|
||||||
|
print(VERSION)
|
||||||
|
sys.exit()
|
||||||
LOG_FILE = "omv_backup.log"
|
LOG_FILE = "omv_backup.log"
|
||||||
if _LOG_LEVEL == "DEBUG":
|
if _LOG_LEVEL == "DEBUG":
|
||||||
logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG, format='%(asctime)s : %(levelname)s : %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG, format='%(asctime)s : %(levelname)s : %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
||||||
|
Reference in New Issue
Block a user