mirror of
				https://github.com/kevinveenbirkenbach/docker-volume-backup.git
				synced 2025-11-04 02:27:56 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			a538e537cb
			...
			b6dd624f97
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b6dd624f97 | |||
| 47828c44db | 
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							@@ -2,3 +2,11 @@
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
	python -m unittest discover -s tests/unit -p "test_*.py"
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
	@echo ">> Installation instructions:"
 | 
			
		||||
	@echo "   This software can be installed with pkgmgr under the alias 'baudolo':"
 | 
			
		||||
	@echo "     pkgmgr install baudolo"
 | 
			
		||||
	@echo ""
 | 
			
		||||
	@echo "   📦 pkgmgr project page:"
 | 
			
		||||
	@echo "     https://github.com/kevinveenbirkenbach/package-manager"
 | 
			
		||||
@@ -77,15 +77,12 @@ def get_instance(container):
 | 
			
		||||
 | 
			
		||||
def stamp_directory():
 | 
			
		||||
    """Stamp a directory using directory-validator."""
 | 
			
		||||
    stamp_command = (
 | 
			
		||||
        f"python {SCRIPTS_DIRECTORY}/directory-validator/"
 | 
			
		||||
        f"directory-validator.py --stamp {VERSION_DIR}"
 | 
			
		||||
    )
 | 
			
		||||
    stamp_command = f"dirval {VERSION_DIR} --stamp"
 | 
			
		||||
    try:
 | 
			
		||||
        execute_shell_command(stamp_command)
 | 
			
		||||
        print(f"Successfully stamped directory: {VERSION_DIR}")
 | 
			
		||||
    except BackupException as e:
 | 
			
		||||
        print(f"Error stamping directory {VERSION_DIR}: {e}")
 | 
			
		||||
        print(f"Error running 'dirval' for {VERSION_DIR}: {e}")
 | 
			
		||||
        exit(1)
 | 
			
		||||
 | 
			
		||||
def backup_database(container, volume_dir, db_type):
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,5 @@
 | 
			
		||||
pacman:
 | 
			
		||||
  - lsof
 | 
			
		||||
  - python-pandas
 | 
			
		||||
pkgmgr:
 | 
			
		||||
  - dirval
 | 
			
		||||
		Reference in New Issue
	
	Block a user