mirror of
				https://github.com/kevinveenbirkenbach/docker-volume-backup.git
				synced 2025-11-04 02:27:56 +00:00 
			
		
		
		
	optimized
This commit is contained in:
		@@ -26,7 +26,7 @@ do
 | 
			
		||||
        mkdir -vp "$native_backups_mount_prefix$backup_dir_path";
 | 
			
		||||
    fi
 | 
			
		||||
    docker run --rm --volumes-from "$docker_container_name" -v "$native_backups_mount:$docker_backups_mount" "kevinveenbirkenbach/alpine-rsync" sh -c "
 | 
			
		||||
    rsync -ab --delete --delete-excluded --backup-dir=\"$($backup_dir_path)\" $source_path $destination_path";
 | 
			
		||||
    rsync -ab --delete --delete-excluded --backup-dir=\"$(dirname $backup_dir_path)\" $source_path $destination_path";
 | 
			
		||||
    if [ "$destination_path" == "$first_destination_path" ]
 | 
			
		||||
      then
 | 
			
		||||
        echo "Cloning first to latest..."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user