mirror of
				https://github.com/kevinveenbirkenbach/docker-volume-backup.git
				synced 2025-11-04 10:38:00 +00:00 
			
		
		
		
	Merge branch 'main' of github.com:kevinveenbirkenbach/docker-volume-backup
This commit is contained in:
		@@ -57,8 +57,9 @@ IMAGES_NO_BACKUP_REQUIRED = [
 | 
				
			|||||||
    'memcached'
 | 
					    'memcached'
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# DEFINE CONSTANTS
 | 
				
			||||||
DIRNAME             = os.path.dirname(__file__)
 | 
					DIRNAME             = os.path.dirname(__file__)
 | 
				
			||||||
 | 
					SCRIPTS_DIRECTORY   = pathlib.Path(os.path.realpath(__file__)).parent.parent
 | 
				
			||||||
DATABASES           = pandas.read_csv(os.path.join(DIRNAME, "databases.csv"), sep=";")
 | 
					DATABASES           = pandas.read_csv(os.path.join(DIRNAME, "databases.csv"), sep=";")
 | 
				
			||||||
REPOSITORY_NAME     = os.path.basename(DIRNAME)
 | 
					REPOSITORY_NAME     = os.path.basename(DIRNAME)
 | 
				
			||||||
MACHINE_ID          = get_machine_id()
 | 
					MACHINE_ID          = get_machine_id()
 | 
				
			||||||
@@ -93,7 +94,7 @@ def get_instance(container):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def stamp_directory():
 | 
					def stamp_directory():
 | 
				
			||||||
    """Stamp a directory using directory-validator."""
 | 
					    """Stamp a directory using directory-validator."""
 | 
				
			||||||
    stamp_command = f"python ../directory-validator/directory-validator.py --stamp {VERSION_DIR}"
 | 
					    stamp_command = f"python {SCRIPTS_DIRECTORY}/directory-validator/directory-validator.py --stamp {VERSION_DIR}"
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        execute_shell_command(stamp_command)
 | 
					        execute_shell_command(stamp_command)
 | 
				
			||||||
        print(f"Successfully stamped directory: {VERSION_DIR}")
 | 
					        print(f"Successfully stamped directory: {VERSION_DIR}")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user