mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 06:35:24 +00:00
Test commands
This commit is contained in:
@@ -95,8 +95,11 @@ def start_backup_process(config, containers):
|
|||||||
|
|
||||||
# Waste a few seconds faking a backup
|
# Waste a few seconds faking a backup
|
||||||
print("Fake backup running")
|
print("Fake backup running")
|
||||||
|
|
||||||
|
# restic.test()
|
||||||
|
|
||||||
import time
|
import time
|
||||||
for i in range(5):
|
for i in range(3):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
logger.info('test')
|
logger.info('test')
|
||||||
print(i)
|
print(i)
|
||||||
|
@@ -3,6 +3,11 @@ from subprocess import Popen, PIPE
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
def test():
|
||||||
|
run_command(['pwd'])
|
||||||
|
run_command(['ls', '-l'])
|
||||||
|
run_command(['ls', '/backup'])
|
||||||
|
|
||||||
|
|
||||||
def init_repo(repository):
|
def init_repo(repository):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user