Changed path

This commit is contained in:
Kevin Veen-Birkenbach 2022-01-23 22:07:29 +01:00
parent 7f5cc5be72
commit c5d66c4ff3

View File

@ -26,12 +26,13 @@ def list_to_string(list):
return str(' '.join(list)); return str(' '.join(list));
print('start backup routine...') print('start backup routine...')
print('load connection data...');
databases=pandas.read_csv("databases.csv",sep=";");
print('start volume backups...') print('start volume backups...')
backup_time=datetime.now().strftime("%Y%m%d%H%M%S") backup_time=datetime.now().strftime("%Y%m%d%H%M%S")
backups_folder='/Backups/' backups_folder='/Backups/'
repository_name=os.path.basename(os.path.dirname(__file__)) dirname=os.path.dirname(__file__)
repository_name=os.path.basename(dirname)
print('load connection data...');
databases=pandas.read_csv(dirname + "/databases.csv",sep=";");
machine_id=bash("sha256sum /etc/machine-id")[0][0:64] machine_id=bash("sha256sum /etc/machine-id")[0][0:64]
backup_repository_folder=backups_folder + machine_id + "/" + repository_name + "/" backup_repository_folder=backups_folder + machine_id + "/" + repository_name + "/"
volume_names=bash("docker volume ls --format '{{.Name}}'") volume_names=bash("docker volume ls --format '{{.Name}}'")